easy thread pool with lambda
- oF 0.9.0~
- Material: raw data type
- Result: processed data type
using ThreadProcess = std::function<Result(Material &&)>;
using CompleteCallback = std::function<void(Result &&)>;
tp
is called background.cc
is called beforeofApp::update
0.9.3~, because ~0.9.2 causes crash.
start/stop threads
add/remove thread
is thread running
current thread num
number of queued material wait process
- initial
MIT License.
- ISHII 2bit [bufferRenaiss co., ltd.]
- ishii[at]buffer-renaiss.com
Please create a new issue if there is a problem. And please throw a pull request if you have a cool idea!!