3 ms·
What do you mean?
by leohotfn 9y ago
What do you mean?
- blackflame7000 9y agothe c++11 library std::async provides a built in mechanism for spawning asynchronous tasks. Under the hood, std::async uses a thread pool. So I'm asking why use this library when the stl already provides a thread-pool mechanism?
- leohotfn 9y agoI think The C++ thread library is overdesigned so it lost some function. What's more, on Linux it's chicken ribs. So I encapsulate POSIX Threads using C++, to take advantage of RAII.
- blackflame7000 9y agoGood explanation, and frankly I agree. From looking through it, I like the control your lib allows. If its performance is superior on Linux as you say, nice work!
- leohotfn 9y agoThanks! BTW, the encapsulation is not finished yet, such as mutex and condition variable. I'll go on with the work, and welcome to contribute if you're interested!