'flags' parameter added to zmq_init

This commit is contained in:
Martin Sustrik
2009-09-20 10:14:21 +02:00
parent edecf75b61
commit 50a8b9ea0c
26 changed files with 65 additions and 41 deletions

View File

@@ -52,7 +52,7 @@ static void raise_exception (JNIEnv *env, int err)
}
JNIEXPORT void JNICALL Java_org_zmq_Context_construct (JNIEnv *env, jobject obj,
jint app_threads, jint io_threads)
jint app_threads, jint io_threads, jint flags)
{
if (ctx_handle_fid == NULL) {
jclass cls = env->GetObjectClass (obj);
@@ -62,7 +62,7 @@ JNIEXPORT void JNICALL Java_org_zmq_Context_construct (JNIEnv *env, jobject obj,
env->DeleteLocalRef (cls);
}
void *ctx = zmq_init (app_threads, io_threads);
void *ctx = zmq_init (app_threads, io_threads, flags);
if (ctx == NULL) {
raise_exception (env, errno);
return;