Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 490 Bytes

File metadata and controls

18 lines (13 loc) · 490 Bytes

ModernThreadManager

thread manager based on modern c++11 thread.

usage

	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;

Build Status