Click to See Complete Forum and Search --> : Mutex Locking


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

Samar Aarkotti
April 20th, 1999, 09:45 AM
I guess you can use the base Class for the locking and unlocking....

CMutex zlock;

zlock.Lock

and zlock.Unlock..... if it does not work out let me know...