SourceForge has been redesigned. Learn more.
Close

#9 dlib::mutex_locker

Next_Release
closed
Davis
5
2005-11-10
2005-11-09
No

Very simple, very powerfull mechanism...

dlib::mutex_locker( dlib::mutex& mut )
-> lock the mutex in it's constructor
-> unlock in it's destructor

Very handy in multi-exit functions.

Discussion

  • Davis

    Davis - 2005-11-09

    Logged In: YES
    user_id=1166290

    A good idea indeed. I will add such an object.

    Thanks :)

     
  • Davis

    Davis - 2005-11-10
    • status: open --> closed
     
  • Davis

    Davis - 2005-11-10

    Logged In: YES
    user_id=1166290

    This will appear in the next release in the form of the
    auto_mutex object.

    Cheers

     
  • Steven Van Ingelgem

    Logged In: YES
    user_id=569271

    Great!

     

Log in to post a comment.