silc_thread_wait

SYNOPSIS

    SilcBool silc_thread_wait(SilcThread thread, void **exit_value);

DESCRIPTION

Waits until the thread indicated by `thread' finishes. This blocks the execution of the current thread. The thread is finished if it calls silc_thread_exit or is destroyed naturally. When the thread exits its exit value is saved to `exit_value' and TRUE is returned. If the `thread' is not waitable this will return immediately with FALSE value.