Template:cpp/atomic/atomic/wait

Performs atomic waiting operations. Behaves as if it repeatedly performs the following steps:


 * Compare with that of.
 * If those are equal, then blocks until is notified by notify_one or notify_all, or the thread is unblocked spuriously.
 * Otherwise, returns.

These functions are guaranteed to return only if value has changed, even if underlying implementation unblocks spuriously.

Return value
(none)