Skip to main content

Example

A game might want to share threads that it uses for the task queue with other work in the game. The following example shows how to use a task queue to signal a condition variable when it has items to dispatch.

See also

Designing the task queue
Last modified on August 4, 2026