From c0b5962cd61a7838dbdd6bbd6c4ab4fc01f01dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 29 Apr 2008 20:20:36 +0000 Subject: [PATCH] * Removed unused function benaphore_lock_etc(). A timeout is not really a good idea for a benaphore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25257 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/lock.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/headers/private/kernel/lock.h b/headers/private/kernel/lock.h index 888aa66aad..efd770b270 100644 --- a/headers/private/kernel/lock.h +++ b/headers/private/kernel/lock.h @@ -68,15 +68,6 @@ extern void mutex_unlock(mutex *m); extern status_t benaphore_init(benaphore *ben, const char *name); extern void benaphore_destroy(benaphore *ben); -static inline status_t -benaphore_lock_etc(benaphore *ben, uint32 flags, bigtime_t timeout) -{ - if (atomic_add(&ben->count, -1) <= 0) - return acquire_sem_etc(ben->sem, 1, flags, timeout); - - return B_OK; -} - static inline status_t benaphore_lock(benaphore *ben)