Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Library call for get thread ID?: (3 Items)
   
Library call for get thread ID?  
Hi:

Is there a library call for retrieving the thread ID i.e. similar to getpid()?

thanks
robert
Re: Library call for get thread ID?  
On Wed, Apr 22, 2009 at 10:32:48AM -0400, Robert D'Attilio wrote:
> Hi:
> 
> Is there a library call for retrieving the thread ID i.e. similar to getpid()?

pthread_self().

-seanb
RE: Library call for get thread ID?  
That was fast!! Thanks!

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com] 
Sent: Wednesday, April 22, 2009 10:33 AM
To: osmeta-core_os
Subject: Re: Library call for get thread ID?

On Wed, Apr 22, 2009 at 10:32:48AM -0400, Robert D'Attilio wrote:
> Hi:
> 
> Is there a library call for retrieving the thread ID i.e. similar to
getpid()?

pthread_self().

-seanb

_______________________________________________
OSMeta
http://community.qnx.com/sf/go/post27749