Reputation: 806
I know some trick with condition, but it is not helpful.
Suppose that I have infinite loop in my thread function. How can I suspend only this thread, not all process?
Upvotes: 0
Views: 1019
Reputation: 5556
Use std::condition_variable or std::this_thread::sleep_for
Upvotes: 1