LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   static boost::mutex (https://www.linuxquestions.org/questions/programming-9/static-boost-mutex-674846/)

krnWo 10-07-2008 11:51 AM

static boost::mutex
 
Hi.

I use boost's function: lock.
The code run on windows but in linux I'm stacked on the lock.
my code:
Code:

class A{
void foo()
{
  boost::mutex::scoped_lock lock(m_locker);
  doSomething();// The code never arrives here in linux.
}
static boost::mutex m_locker;
};


David1357 10-07-2008 01:39 PM

Quote:

Originally Posted by krnWo (Post 3303049)
The code run on windows but in linux I'm stacked on the lock.

Are you using the same version of boost on both platforms?

Have you reported this on any of the boost forums?

Have you tried upgrading to the latest version of boost?

krnWo 10-15-2008 03:17 AM

In both Linux and Windows i use boost 1.34.1

David1357 10-15-2008 08:21 AM

Quote:

Originally Posted by krnWo (Post 3310561)
In both Linux and Windows i use boost 1.34.1

Latest is 1.35.0.

Have you posted your question to the boost forums?

krnWo 10-15-2008 08:34 AM

I have to work on version 1.34.1. Which boost forums do u mean ?

David1357 10-15-2008 02:44 PM

Quote:

Originally Posted by krnWo (Post 3310772)
I have to work on version 1.34.1. Which boost forums do u mean ?

Here is a link to information about the Boost User's Mailing List

You can also google for "boost library forum"

Here is a link to nabble.com's Boost User's Forum


All times are GMT -5. The time now is 11:57 PM.