Wakes one thread that is waiting on a condition variable. This routine can only be called from interrupt level.
pthread_cond_signal_int_np( cond );
Argument Data Type Accesscond opaque pthread_cond_t read
int pthread_cond_signal_int_np( pthread_cond_t *cond);
The scheduling policies of the waiting threads determine which thread is awakened. For policies SCHED_FIFO and SCHED_RR, a blocked thread is chosen in priority order, using first-in/first-out (FIFO) within priorities.
This routine does not cause a thread blocked on a condition variable to resume execution immediately. A thread resumes execution at some time after the interrupt handler returns.
You can call this routine regardless of whether the associated mutex is locked. Never try to lock a mutex from an interrupt handler.
Return Error Description0 Successful completion. -1 [EINVAL] The value specified by cond is invalid.