RTEMS CPU Kit with SuperCore
Functions
mutextrylock.c File Reference

Try to Lock Mutex. More...

#include <errno.h>
#include <pthread.h>
#include <rtems/system.h>
#include <rtems/score/coremuteximpl.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/muteximpl.h>
#include <rtems/posix/priorityimpl.h>
#include <rtems/posix/time.h>
Include dependency graph for mutextrylock.c:

Functions

int pthread_mutex_trylock (pthread_mutex_t *mutex)
 11.3.3 Locking and Unlocking a Mutex, P1003.1c/Draft 10, p. More...
 

Detailed Description

Try to Lock Mutex.

Function Documentation

◆ pthread_mutex_trylock()

int pthread_mutex_trylock ( pthread_mutex_t *  mutex)

11.3.3 Locking and Unlocking a Mutex, P1003.1c/Draft 10, p.

93

NOTE: P1003.4b/D8 adds pthread_mutex_timedlock(), p. 29

References _POSIX_Mutex_Lock_support(), and WATCHDOG_NO_TIMEOUT.