* _user_unblock_thread[s]() also set the user thread's wait_status, now. This
makes them more convenient to use, since the caller doesn't need to know the target threads' user thread structure. * Adjusted the pthread rwlock implementation accordingly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29578 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2286,7 +2286,10 @@ user_unblock_thread(thread_id threadID, status_t status)
|
||||
if (thread->user_thread == NULL)
|
||||
return B_NOT_ALLOWED;
|
||||
|
||||
thread_unblock_locked(thread, status);
|
||||
if (thread->user_thread->wait_status > 0) {
|
||||
thread->user_thread->wait_status = status;
|
||||
thread_unblock_locked(thread, status);
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user