Threads
Wait
wait for a thread to finish
Calling Sequence
Parameters
Description
Examples
Wait( id1, id2, ... )
id1, id2, ...
-
(integer) thread identifiers
The Wait command pauses the current thread until the threads specified as arguments finish.
p := proc( limit ) local now, start; start := time[real](); now := start; while now - start < limit do Threads:-Sleep( 0.1 ); now := time[real](); end; return now-start; end:
See Also
Threads[ConditionVariable]
Threads[Create]
Threads[Mutex]
Threads[Self]
Download Help Document