Label threads with a descriptive name where supported (pthreads).
This commit is contained in:
@@ -96,7 +96,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
/* static */ bool ThreadObject::New(OTTDThreadFunc proc, void *param, ThreadObject **thread)
|
||||
/* static */ bool ThreadObject::New(OTTDThreadFunc proc, void *param, ThreadObject **thread, const char *name)
|
||||
{
|
||||
ThreadObject *to = new ThreadObject_Win32(proc, param, thread == NULL);
|
||||
if (thread != NULL) *thread = to;
|
||||
|
Reference in New Issue
Block a user