Something similar to WaitForSingleObject in unix/linux
Hello,
What I need to make is a thread what suspends itself and restarts on ocassions when some events happen or so. I was originally wondering to use the WaitForSingleObject inside the thread with an infinite wait loop until event happends, but no idea about unix/linux. Could anybody please tell me how to do this?
Hi, there are some code I wrote for usage...
It can help U
I put 4 source files in one, because I could attach only one here... but I hope U can decide this .
There are 2 mechanizms here:
1) U can use CEvent object to emulate a waitnig process.
2) There are many sync win functions (with the same name like in win api) but with internal part for linux (find WaitForSingleObject()).
Last edited by dimm_coder; April 30th, 2003 at 03:45 AM.
"UNIX is simple; it just takes a genius to understand its simplicity!"
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.