RTEMS Logo

RTEMS 4.10.2 On-Line Library


Mutex Manager pthread_mutex_trylock - Poll to Lock a Mutex

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

10.4.12: pthread_mutex_trylock - Poll to Lock a Mutex

CALLING SEQUENCE:

#include <pthread.h>

int pthread_mutex_trylock(
  pthread_mutex_t *mutex
);

STATUS CODES:

EINVAL
The specified mutex is invalid.
EINVAL
The mutex has the protocol attribute of PTHREAD_PRIO_PROTECT and the priority of the calling thread is higher than the current priority ceiling.
EDEADLK
The current thread already owns the mutex.

DESCRIPTION:

NOTES:


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation