Skip to content

Commit aeb0089

Browse files
gonnetxnnpack-bot
authored andcommitted
Add a PTHREADPOOL_FLAG_DONT_SPIN_WORKERS flag to:
* Wait on a `futex` or `cond_var`, or * Returns threads to an executor immediately, instead of spinning for a limited number of iterations while waiting for work. This flag should replace `PTHREADPOOL_FLAG_YIELD_WORKERS`, which is currently the default behaviour. PiperOrigin-RevId: 810004216
1 parent 41fadfb commit aeb0089

3 files changed

Lines changed: 92 additions & 95 deletions

File tree

0 commit comments

Comments
 (0)