2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Try to lock a semaphore shared.
9 #include <exec/semaphores.h>
10 #include <proto/exec.h>
12 #include "exec_intern.h"
13 #include "exec_util.h"
14 #include "semaphores.h"
16 /*****************************************************************************
20 AROS_LH1(ULONG
, AttemptSemaphoreShared
,
23 AROS_LHA(struct SignalSemaphore
*, sigSem
, A0
),
26 struct ExecBase
*, SysBase
, 120, Exec
)
29 Tries to get a shared lock on a signal semaphore. If the lock cannot
30 be obtained false is returned. There may be more than one shared lock
31 at a time but an exclusive lock prevents all other locks. The lock
32 must be released with ReleaseSemaphore().
35 sigSem - pointer to semaphore structure
38 True if the semaphore could be obtained, false otherwise.
51 *****************************************************************************/
55 struct TraceLocation tp
= CURRENT_LOCATION("AttemptSemaphoreShared");
57 return InternalAttemptSemaphore(sigSem
, NULL
, &tp
, SysBase
);
60 } /* AttemptSemaphoreShared */