Name
cond_wait
Synopsis
cond_wait var
Description
Takes the locked variable var, unlocks it, and blocks until another
thread does a cond_signal
or
cond_broadcast
for that variable. The variable is
relocked after the cond_wait
has been satisfied. If multiple
threads are cond_wait
ing, all but one will reblock waiting to
reacquire the lock.
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.