recall

← recall

condition variable term

wait until some condition becomes true, then resume

Always paired with a mutex. Thread releases the lock and sleeps; another thread changes state and signals the condvar to wake the sleeper. Used to build blocking queues, signals, barriers.

aliases: condvar

topics: concurrency, locks

references: