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