Skip to content

Glossary: C++ Beyond the Basics

Predicate

A function returning `bool`. `condition_variable::wait` takes one and re-checks it after each wake-up, which makes spurious wake-ups harmless.

Where the book teaches it

Related terms

Condition variableSpurious wake-up