1
0
mirror of https://github.com/libp2p/go-openssl.git synced 2025-04-24 17:50:13 +08:00

set callback thread id on windows

This commit is contained in:
Jeff Wendling 2018-07-26 11:32:16 -06:00
parent 6ac1e9e6b9
commit 3c881b520f
2 changed files with 6 additions and 6 deletions

View 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 ret;
ret = (unsigned long)pthread_self();
return (ret);
unsigned long go_thread_id_callback(void) {
return (unsigned long)pthread_self();
}
*/
import "C"

View File

@ -49,5 +49,9 @@ void go_thread_locking_callback(int mode, int n, const char *file,
LeaveCriticalSection(&goopenssl_locks[n]);
}
}
unsigned long go_thread_id_callback(void) {
return (unsigned long)GetCurrentThreadId();
}
*/
import "C"