13.05.2013, 15:47
Quote:
If you care, I've started updating some of the code. I split the queries in to two containers - your map for "is_valid" checks and referencing them by ID, and a second thread-safe queue for passing queries between threads for concurrent ones. I've removed most of the locks as they protected reads from the only thread that can modify some of the data, so there wasn't any point protecting them. It also switched to using "const" methods where possible as C++11 defines those as thread read safe.
|