April 18th, 1999, 05:11 AM
I am trying to find a way to use mutex locking similar to the way HP Unix does it. I am trying to control the order of functions in Threads.
I would really just like a function that can lock a variable, then any other attempts to lock that variable will cause a blocking call. I have tried to use CMutex and CSingleLock, but these appear to have too much error checking built in. I'd like the plain jane version of mutex_lock and mutex_unlock, please tell me what functions I could use to do this.
Ender
I would really just like a function that can lock a variable, then any other attempts to lock that variable will cause a blocking call. I have tried to use CMutex and CSingleLock, but these appear to have too much error checking built in. I'd like the plain jane version of mutex_lock and mutex_unlock, please tell me what functions I could use to do this.
Ender