FMayis
asked on
CreateEvent SetEvent in LINUX
Hi,
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!
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks both,
The open source provides by YuriPutivsky is exactly what I was looking for.
The open source provides by YuriPutivsky is exactly what I was looking for.
Use the 'pthreads' library, it has all you need and can get - see http://www.llnl.gov/computing/tutorials/workshops/workshop/pthreads/MAIN.html ("posix threads programming") for a comprehensive tutorial