I have a code developped under WIN32 that I need to port under LINUX.
I have find way to translate thread and mutexes, and now come the problem of events.
The WIN32 library use CreateEvent and SetEvent and I want to translate these functions under LINUX.
I'd like to create a CEvent class with a Wait and Signal function to emulate the process of CreateEvent, SetEvent and WaitForSingleObject function.
I have seen the functions linked to the conditionnal variables but I'd like to have a full example that explains how to implement conditionnal variables.
Thanks a lot!