summaryrefslogtreecommitdiff
path: root/java/Context.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-05 09:30:12 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-05 09:30:12 +0200
commit67253f3186488db93dee23bd9194419f58f0b1d3 (patch)
treee5e3ed1c3f1d4b2cf5f9a1b81f869a9bd9f14c06 /java/Context.cpp
parent63b56d7fb38624c32111f9188d54b6fefb10a0e5 (diff)
Java perf tests added
Diffstat (limited to 'java/Context.cpp')
-rw-r--r--java/Context.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/java/Context.cpp b/java/Context.cpp
index d8fcf99..3fc66bd 100644
--- a/java/Context.cpp
+++ b/java/Context.cpp
@@ -27,8 +27,7 @@
static jfieldID ctx_handle_fid = NULL;
-static void
-raise_exception (JNIEnv *env, int err)
+static void raise_exception (JNIEnv *env, int err)
{
// Get exception class.
jclass exception_class = env->FindClass ("java/lang/Exception");
@@ -45,9 +44,8 @@ raise_exception (JNIEnv *env, int err)
env->DeleteLocalRef (exception_class);
}
-JNIEXPORT void JNICALL
-Java_org_zmq_Context_construct (JNIEnv *env, jobject obj,
- jint app_threads, jint io_threads)
+JNIEXPORT void JNICALL Java_org_zmq_Context_construct (JNIEnv *env, jobject obj,
+ jint app_threads, jint io_threads)
{
if (ctx_handle_fid == NULL) {
jclass cls = env->GetObjectClass (obj);
@@ -66,8 +64,7 @@ Java_org_zmq_Context_construct (JNIEnv *env, jobject obj,
env->SetLongField (obj, ctx_handle_fid, (jlong) ctx);
}
-JNIEXPORT void JNICALL
-Java_org_zmq_Context_finalize (JNIEnv *env, jobject obj)
+JNIEXPORT void JNICALL Java_org_zmq_Context_finalize (JNIEnv *env, jobject obj)
{
void *ctx = (void*) env->GetLongField (obj, ctx_handle_fid);
assert (ctx);
@@ -76,8 +73,8 @@ Java_org_zmq_Context_finalize (JNIEnv *env, jobject obj)
assert (rc == 0);
}
-JNIEXPORT jlong JNICALL
-Java_org_zmq_Context_createSocket (JNIEnv *env, jobject obj, jint type)
+JNIEXPORT jlong JNICALL Java_org_zmq_Context_createSocket (JNIEnv *env,
+ jobject obj, jint type)
{
void *ctx = (void*) env->GetLongField (obj, ctx_handle_fid);
assert (ctx);