CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Mutex Locking

  1. #1
    Guest

    Mutex Locking

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    13

    Re: Mutex Locking

    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...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured