mirror of
https://github.com/aap/pdp6.git
synced 2026-03-05 11:04:41 +00:00
emu/threading.c (threadname): OSX sucks.
This commit is contained in:
@@ -213,7 +213,11 @@ void
|
||||
threadname(char *name)
|
||||
{
|
||||
// TODO: make portable
|
||||
#ifdef __APPLE__
|
||||
pthread_setname_np(name);
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), name);
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user