replaced benaphore with mutex
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25742 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -176,7 +176,7 @@ struct firewire_comm{
|
||||
#ifndef __HAIKU__
|
||||
struct mtx tlabel_lock;
|
||||
#else
|
||||
benaphore tlabel_lock;
|
||||
mutex tlabel_lock;
|
||||
#endif
|
||||
STAILQ_HEAD(, fw_bind) binds;
|
||||
STAILQ_HEAD(, fw_device) devices;
|
||||
@@ -225,8 +225,8 @@ struct firewire_comm{
|
||||
struct taskqueue *taskqueue;
|
||||
struct proc *probe_thread;
|
||||
#else
|
||||
benaphore mtx;
|
||||
benaphore wait_lock;
|
||||
mutex mtx;
|
||||
mutex wait_lock;
|
||||
void *taskqueue;
|
||||
thread_id probe_thread;
|
||||
sem_id Sem;
|
||||
|
||||
@@ -33,10 +33,10 @@ typedef uint32_t bus_size_t;
|
||||
#define atomic_readandclear_int(ptr) atomic_set((int32 *)(ptr), 0)
|
||||
#define atomic_set_int(ptr, value) atomic_or((int32 *)(ptr), value)
|
||||
|
||||
#define mtx_lock benaphore_lock
|
||||
#define mtx_unlock benaphore_unlock
|
||||
#define mtx_destroy benaphore_destroy
|
||||
#define mtx_init(lockaddr, name, type, opts) benaphore_init(lockaddr, name)
|
||||
#define mtx_lock mutex_lock
|
||||
#define mtx_unlock mutex_unlock
|
||||
#define mtx_destroy mutex_destroy
|
||||
#define mtx_init(lockaddr, name, type, opts) mutex_init(lockaddr, name)
|
||||
|
||||
#define splfw() 0
|
||||
#define splx(s)
|
||||
|
||||
Reference in New Issue
Block a user