mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibThread: Add API to join a thread
This commit is contained in:
committed by
Andreas Kling
parent
3ac0c9b9e7
commit
d51173e4c4
@@ -64,6 +64,11 @@ void LibThread::Thread::start()
|
||||
dbg() << "Started a thread, tid = " << m_tid;
|
||||
}
|
||||
|
||||
void LibThread::Thread::join()
|
||||
{
|
||||
pthread_join(m_tid, nullptr);
|
||||
}
|
||||
|
||||
void LibThread::Thread::quit(void* code)
|
||||
{
|
||||
ASSERT(m_tid == pthread_self());
|
||||
|
||||
Reference in New Issue
Block a user