mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibPthread: Fix incompatible pthread_setname_np(), pthread_getname_np()
Other implementations of pthread_setname_np() do not take the name length as an argument. For pthread_getname_np(), other implementations take the buffer size as a size_t. This patch brings us in line with other implementations.
This commit is contained in:
@@ -33,7 +33,7 @@ void LibThread::Thread::start()
|
||||
|
||||
ASSERT(rc == 0);
|
||||
if (!m_thread_name.is_empty()) {
|
||||
rc = pthread_setname_np(m_tid, m_thread_name.characters(), m_thread_name.length());
|
||||
rc = pthread_setname_np(m_tid, m_thread_name.characters());
|
||||
ASSERT(rc == 0);
|
||||
}
|
||||
dbg() << "Started a thread, tid = " << m_tid;
|
||||
|
||||
Reference in New Issue
Block a user