silc_cond_signal

SYNOPSIS

    void silc_cond_signal(SilcCond cond);

DESCRIPTION

Signals a waiting thread and wakes it up. If there are no waiters this function has no effect. In case of multiple waiters only one is signalled. To signal all of them use silc_cond_broadcast.

NOTES

Before calling this function the mutex used with the silc_cond_wait must be acquired.

EXAMPLE

    silc_mutex_lock(lock);
    c->a = context;
    silc_cond_signal(cond);
    silc_mutex_unlock(lock);