mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Removed RTLD_NOLOAD, fixing https://github.com/plasma-umass/coz/issues/180.
This commit is contained in:
parent
352d9f4720
commit
f7b5efd248
@ -36,7 +36,7 @@ static void* pthread_handle = NULL; //< The `dlopen` handle to libpthread
|
|||||||
*/
|
*/
|
||||||
static void* get_pthread_handle() {
|
static void* get_pthread_handle() {
|
||||||
if(pthread_handle == NULL && !__atomic_exchange_n(&in_dlopen, true, __ATOMIC_ACQ_REL)) {
|
if(pthread_handle == NULL && !__atomic_exchange_n(&in_dlopen, true, __ATOMIC_ACQ_REL)) {
|
||||||
pthread_handle = dlopen("libpthread.so.0", RTLD_NOW | RTLD_GLOBAL | RTLD_NOLOAD);
|
pthread_handle = dlopen("libpthread.so.0", RTLD_NOW | RTLD_GLOBAL);
|
||||||
__atomic_store_n(&in_dlopen, false, __ATOMIC_RELEASE);
|
__atomic_store_n(&in_dlopen, false, __ATOMIC_RELEASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user