LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2008, 11:51 AM   #1
krnWo
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Rep: Reputation: 0
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;
};
 
Old 10-07-2008, 01:39 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by krnWo View Post
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?
 
Old 10-15-2008, 03:17 AM   #3
krnWo
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Original Poster
Rep: Reputation: 0
In both Linux and Windows i use boost 1.34.1
 
Old 10-15-2008, 08:21 AM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by krnWo View Post
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?
 
Old 10-15-2008, 08:34 AM   #5
krnWo
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I have to work on version 1.34.1. Which boost forums do u mean ?
 
Old 10-15-2008, 02:44 PM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by krnWo View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Named mutex in Linux tbruer1138 Programming 6 05-17-2016 09:25 AM
Why does pthread_cond_wait need a mutex? fuzzyBuzz Programming 4 06-01-2009 02:16 PM
Mutex attributes? estratos Programming 12 12-24-2006 03:54 AM
Mutex destroy failure?? What the magis Linux - Newbie 15 03-04-2005 02:13 AM
pthreads: mutex initializer cardias Programming 1 09-03-2004 12:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration