mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added internal thread name support, for use with debuggers.
This commit is contained in:
@@ -99,5 +99,10 @@ bool Threadable::isRunning() const
|
||||
return owner->isRunning();
|
||||
}
|
||||
|
||||
const char *Threadable::getThreadName() const
|
||||
{
|
||||
return threadName.empty() ? nullptr : threadName.c_str();
|
||||
}
|
||||
|
||||
} // thread
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user