C++: Thread synchronization scenario on Linux Platform
问题 I am implementing multithreaded C++ program for Linux platform where I need a functionality similar to WaitForMultipleObjects(). While searching for the solution I observed that there are articles that describe how to achieve WaitForMultipleObjects() functionality in Linux with examples but those examples does not satisfy the scenario that I have to support. The scenario in my case is pretty simple. I have a daemon process in which the main thread exposes a method/callback to the outside