kernel: Remove thread_block_with_timeout_locked()

This commit is contained in:
Pawel Dziepak
2013-11-04 23:45:14 +01:00
parent c2763aaffb
commit 11cacd0c13
5 changed files with 27 additions and 44 deletions
+2 -6
View File
@@ -134,15 +134,11 @@ ConditionVariableEntry::Wait(uint32 flags, bigtime_t timeout)
conditionLocker.Unlock();
SpinLocker schedulerLocker(gSchedulerLock);
status_t error;
if ((flags & (B_RELATIVE_TIMEOUT | B_ABSOLUTE_TIMEOUT)) != 0)
error = thread_block_with_timeout_locked(flags, timeout);
error = thread_block_with_timeout(flags, timeout);
else
error = thread_block_locked(thread_get_current_thread());
schedulerLocker.Unlock();
error = thread_block();
conditionLocker.Lock();