[common] properly define _GNU_SOURCE and set the thread names

This commit is contained in:
Geoffrey McRae committed 2020-08-10 16:22:02 +10:00
1 parent 90d0cd873d
commit d9a80b16f0
4 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -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;
}
}