开发者

zi_lib concurrency example

开发者 https://www.devze.com 2023-02-25 04:12 出处:网络
Can anyone explain to me how to use zi_lib concurr开发者_JS百科ency with classes?You can look at the examples in

Can anyone explain to me how to use zi_lib concurr开发者_JS百科ency with classes?


You can look at the examples in

https://github.com/zlateski/zi_lib/tree/master/zi/concurrency/test

note that you don't have to use zi::run_fn, it's a backwards compatibility thing, you can say:

zi::thread t( zi::bind( function_pointer, arg1, arg2, ... ) ); t.start(); t.join();

same thing with the zi::task_manager::simple or zi::task_manager::deque.

the test have bunch of examples of how to use the synchronization classes/functions

0

精彩评论

暂无评论...
验证码 换一张
取 消