[openbeos] Re: Help with coding.

  • From: François Revol <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Tue, 23 Apr 2002 12:27:10 +0200 (MEST)

Both find_thread(NULL) and getpid() returns the current thread id.
then you can use get_thread_info() to get the team
have a look in 
file:///boot/develop/headers/be/kernel/OS.h

François.
sorry for duplicates, I don't have read ahead on this mailbox ;)


En réponse à Isaac Yonemoto <ityonemo@xxxxxxxxxxxx>:

> 
> this might be a little out of place here, but...
> 
> Does anyone know how to access the team_id and thread_id info when
> writing
> a program in C?  Should this be done with a posix function?  There
> seemed
> to be nothing in the Be Book to help this -- perhaps a function that
> reports the thread_id and/or team_id that the CPU is working on at
> that
> time?
> 
> Isaac
> 
> 
> 






Other related posts: