![]() |
![]() |
![]() |
Attach an event to a mutex
#include <sys/neutrino.h> int SyncMutexEvent( sync_t * sync, struct sigevent * event ); int SyncMutexEvent_r( sync_t * sync, struct sigevent * event );
libc
The SyncMutexRevive() and SyncMutexRevive_r() functions are identical except in the way they indicate errors. See the Returns section for details.
These kernel calls attach the specified event to a mutex pointed to by sync. When you're notified that a mutex has been put into the DEAD state because the memory that contained the mutex has been unmapped, you can revive the mutex with SyncMutexRevive().
The only difference between these functions is the way they indicate errors:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
SyncCondvarSignal(), SyncCondvarWait(), SyncDestroy(), SyncMutexLock(), SyncMutexRevive(), SyncMutexUnlock()
![]() |
![]() |
![]() |