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

    Thead lib from boost mutex help

    Is it possable to explicity unlock and lock a mutex using the boost thread libary. There is the scoped_lock function. But that does not offer enought control over the mutex and I keep deadlocking my code.

    Thanks

  2. #2
    Join Date
    Nov 2003
    Posts
    1,902

    Re: Thead lib from boost mutex help

    boost::mutex implements the "Lockable Concept" - which means it has member functions lock, try_lock, and unlock.
    http://www.boost.org/doc/libs/1_37_0...mutex_concepts
    http://www.boost.org/doc/libs/1_37_0...ex_types.mutex

    gg

Tags for this Thread

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