thread manager based on modern c++11 thread.
MThreadsMgr& mthreadsmgr = MThreadsMgr::instance();
auto mthreads = mthreadsmgr.createMThreads("simpleusage",10);
auto mfuture = mthreads->enqueue([]{
std::this_thread::sleep_for(std::chrono::seconds(1));
return 1;
});
std::cout << mfuture.get() << std::endl;