mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Added Thread:isRunning
This commit is contained in:
@@ -68,6 +68,12 @@ void Thread::wait()
|
||||
thread = 0;
|
||||
}
|
||||
|
||||
bool Thread::isRunning()
|
||||
{
|
||||
Lock l(mutex);
|
||||
return running;
|
||||
}
|
||||
|
||||
int Thread::thread_runner(void *data)
|
||||
{
|
||||
Thread *self = (Thread *) data; // some compilers don't like 'this'
|
||||
|
||||
Reference in New Issue
Block a user