Link to home
Start Free TrialLog in
Avatar of FMayis
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!
Avatar of jkr
jkr
Flag of Germany image

>>I have find way to translate thread and mutexes

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
ASKER CERTIFIED SOLUTION
Avatar of YuriPutivsky
YuriPutivsky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FMayis
FMayis

ASKER

Thanks both,

The open source provides by YuriPutivsky is exactly what I was looking for.