#include <semaphore.h>
|
int
sem_post (sem_t *sem); |
sem_t psem; if (sem_init(&psem, 0, 1) < 0) { perror("sem_init"); return -1; } if( sem_post(psem) == -1 ) { perror( "sem_post failed"); return -1; }
[EINVAL] | |
The sem argument points to an invalid or uninitialized semaphore. | |
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |