c++ - Is there a decent wait_any implementation using c++11's concurrency primitives? -


is there decent wait_any implementation using c++11's concurrency primitives?

or how implement in c++11's mutex, condition_variable, ... ?

what general idea , algorithms in implementing it, not c++11, native linux system call , pthread?

the wait_any waiting futures in vector/array available, or of multiple condition_variables signaled, , etc...

when_any not exist in c++ std.

usually end using producer-consumer queue of messages. of suppiers can queue message in queue (like "i ready").

many threads waiting on many such queues ends being complex.

in effect, build things out of c++ std primitives, don't directly use them in client code.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -