Skip to content

Commit aef97a5

Browse files
committed
Cosmetic tidyup in SWIG_JAVA_DETACH_ON_THREAD_END code
1 parent 36dc818 commit aef97a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/java/director.swg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ namespace Swig {
138138
}
139139

140140
#if defined(SWIG_JAVA_DETACH_ON_THREAD_END)
141-
static void detach(void* jvm) {
142-
static_cast<JavaVM*>(jvm)->DetachCurrentThread();
141+
static void detach(void *jvm) {
142+
static_cast<JavaVM *>(jvm)->DetachCurrentThread();
143143
}
144144

145-
static void makeDetachKey() {
145+
static void make_detach_key() {
146146
pthread_key_create(&detach_key_, detach);
147147
}
148148

@@ -229,7 +229,7 @@ namespace Swig {
229229
// See https://developer.android.com/training/articles/perf-jni#threads
230230
static pthread_once_t once = PTHREAD_ONCE_INIT;
231231

232-
pthread_once(&once, JObjectWrapper::makeDetachKey);
232+
pthread_once(&once, JObjectWrapper::make_detach_key);
233233
pthread_setspecific(JObjectWrapper::detach_key_, director->swig_jvm_);
234234
#endif
235235
}

0 commit comments

Comments
 (0)