mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-22 06:40:01 +08:00
fix whitespace issues <grumble, grumble>
This commit is contained in:
parent
68e539164e
commit
ee1e413927
@ -125,13 +125,13 @@ static void callCallback( FDBFuture* f, void* data ) {
|
|||||||
// of these per external client and cache it, so we *should*
|
// of these per external client and cache it, so we *should*
|
||||||
// be fine.
|
// be fine.
|
||||||
if( g_jvm != 0 && g_jvm->AttachCurrentThreadAsDaemon((void **) &g_thread_jenv, JNI_NULL) == JNI_OK ) {
|
if( g_jvm != 0 && g_jvm->AttachCurrentThreadAsDaemon((void **) &g_thread_jenv, JNI_NULL) == JNI_OK ) {
|
||||||
if( !findCallbackMethods( g_thread_jenv ) ) {
|
if( !findCallbackMethods( g_thread_jenv ) ) {
|
||||||
g_thread_jenv->FatalError("FDB: Could not find callback method.\n");
|
g_thread_jenv->FatalError("FDB: Could not find callback method.\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Can't call FatalError, because we don't have a pointer to the jenv...
|
// Can't call FatalError, because we don't have a pointer to the jenv...
|
||||||
fprintf(stderr, "FDB: Could not attach external client thread to the JVM as daemon.\n");
|
fprintf(stderr, "FDB: Could not attach external client thread to the JVM as daemon.\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
jobject callback = (jobject)data;
|
jobject callback = (jobject)data;
|
||||||
@ -1076,8 +1076,8 @@ JNIEXPORT void JNICALL Java_com_apple_cie_foundationdb_FDB_Network_1stop(JNIEnv
|
|||||||
}
|
}
|
||||||
|
|
||||||
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||||
g_jvm = vm;
|
g_jvm = vm;
|
||||||
return JNI_VERSION_1_1;
|
return JNI_VERSION_1_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user