#include <pthread.h>
|
int
pthread_mutex_trylock (pthread_mutex_t *mutex); |
int rc; pthread_mutex_t mutex; rc = pthread_mutex_trylock(&mutex); switch (rc) { case 0: printf ("Locked successfully\n"); break; case EAGAIN: printf ("could not lock, try later.....\n"); break; }
[EINVAL] | |
The value specified by mutex is invalid. | |
[EAGAIN] | |
Mutex is already locked. | |
[ENOSYS] | |
If locking is not supported for this mutex kind. | |
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |