Commit 3c881b52 authored by Jeff Wendling's avatar Jeff Wendling

set callback thread id on windows

parent 6ac1e9e6
...@@ -61,12 +61,8 @@ void go_thread_locking_callback(int mode, int n, const char *file, ...@@ -61,12 +61,8 @@ void go_thread_locking_callback(int mode, int n, const char *file,
} }
} }
unsigned long go_thread_id_callback(void) unsigned long go_thread_id_callback(void) {
{ return (unsigned long)pthread_self();
unsigned long ret;
ret = (unsigned long)pthread_self();
return (ret);
} }
*/ */
import "C" import "C"
...@@ -49,5 +49,9 @@ void go_thread_locking_callback(int mode, int n, const char *file, ...@@ -49,5 +49,9 @@ void go_thread_locking_callback(int mode, int n, const char *file,
LeaveCriticalSection(&goopenssl_locks[n]); LeaveCriticalSection(&goopenssl_locks[n]);
} }
} }
unsigned long go_thread_id_callback(void) {
return (unsigned long)GetCurrentThreadId();
}
*/ */
import "C" import "C"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment