Make a wise use of condition variables in the depth_dbm_solver instead of a busy/usleep() loop to wake up threads for further processing. The basic idea is:
A worker thread will signal the condvar when new data is available in the queue to wake up a single thread.
A thread will broadcast the condvar to terminate the process completely.
Make a wise use of condition variables in the depth_dbm_solver instead of a busy/usleep() loop to wake up threads for further processing. The basic idea is:
A worker thread will signal the condvar when new data is available in the queue to wake up a single thread.
A thread will broadcast the condvar to terminate the process completely.
Please use a feature branch for that.