This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Perform an operation on a synchronization object
#include <sys/neutrino.h> int SyncCtl( int cmd, sync_t * sync, void * data ); int SyncCtl_r( int cmd, sync_t * sync, void * data );
You should use SyncMutexEvent() to do this. |
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The SyncCtl() and SyncCtl_r() kernel calls let you:
or
These functions are similar, except for the way they indicate errors. See the Returns section for details.
Instead of using these kernel calls directly, consider calling pthread_mutex_getprioceiling() or pthread_mutex_setprioceiling(). |
The only difference between these functions is the way they indicate errors:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_mutex_getprioceiling(), pthread_mutex_setprioceiling(), SyncCondvarSignal(), SyncCondvarWait(), SyncDestroy(), SyncMutexEvent(), SyncMutexLock(), SyncMutexRevive(), SyncMutexUnlock(), SyncTypeCreate()