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-22-2009, 12:02 AM   #1
nathanmca
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Wink Porting C++ application from HP_UX to RH Linux


Hi Guys

I am porting an multi-threaded application from HP UX to Linux.

The existing system has a global variable declared with "thread_private".

HP UX code

static thread_private long count;

I am trying to find out an equivalent for that under linux.

Throw me some light on this

Thanks
Nathan.
 
Old 10-22-2009, 12:20 AM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Thread-local storage
http://gcc.gnu.org/onlinedocs/gcc-4....read_002dLocal
 
Old 10-22-2009, 04:01 AM   #3
nathanmca
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks tuxdev. It worked.
 
  


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
Porting C++ application from HP_UX to fedora Linux mohamed S. Other *NIX 2 09-09-2009 10:05 PM
Porting COM application to Linux gnraghu Programming 1 10-05-2006 10:55 PM
porting Window Application to Linux sjcoder Programming 3 12-18-2005 04:48 PM
Porting Solaris Application to Linux CaptainRon Solaris / OpenSolaris 5 10-01-2005 02:29 AM
Porting win32 application into Linux sergeyy Linux - Software 1 06-23-2003 08:57 AM

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

All times are GMT -5. The time now is 05:41 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