3 ms·
C++ multi-threading is easy by not sharing data. Just have each thread produce a result and have a thread that accumulates the results via std::future. I've co
by pierrebai 6y ago
C++ multi-threading is easy by not sharing data. Just have each thread produce a result and have a thread that accumulates the results via std::future.
I've converted many mono-thread C++ algorithm this way.