silc_cond_timedwait

SYNOPSIS

    void silc_cond_timedwait(SilcCond cond, SilcMutex mutex, int timeout);

DESCRIPTION

Waits for condition variable `cond' to be signalled or for the `timeout' to expire. The timeout is in milliseconds. If it is 0 no timeout exist. Returns FALSE if timeout expired, TRUE when signalled. This function will block the calling thread until the condition variable is signalled. The `mutex' must be locked before calling this function. The `mutex' will be unlocked inside this function. After this function returns the `mutex' is in locked state again.