Name

await_thread — wait for a thread to complete

Synopsis

int await_thread(thread *thread_id, int sec_to_wait)

Waits for the thread thread_id to complete or for sec_to_wait seconds to pass, whichever comes first. Returns MULTI_OK, MULTI_TIMEOUT, or MULTI_ERR.