Reset last_acquirer in case the semaphore gets released.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15144 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-11-25 12:34:54 +00:00
parent 9240f51352
commit ecf2e38db2
+4
View File
@@ -642,6 +642,10 @@ release_sem_etc(sem_id id, int32 count, uint32 flags)
goto err;
}
#ifdef DEBUG_LAST_ACQUIRER
sSems[slot].u.used.last_acquirer = -1;
#endif
// clear out a queue we will use to hold all of the threads that we will have to
// put back into the run list. This is done so the thread lock wont be held
// while this sems lock is held since the two locks are grabbed in the other