[common] properly define _GNU_SOURCE and set the thread names
This commit is contained in:
1 parent
90d0cd873d
commit
d9a80b16f0
4 files changed
+6
-3
No files matched your search
@@ -54,6 +54,8 @@ bool lgCreateThread(const char * name, LGThreadFunction function, void * opaque,
|
||||
*handle = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
pthread_setname_np((*handle)->handle, name);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -71,4 +73,4 @@ bool lgJoinThread(LGThread * handle, int * resultCode)
|
||||
|
||||
free(handle);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user