9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] plan9port: threadid() etc.
@ 2006-10-17 21:25 ISHWAR RATTAN
  2006-10-17 21:37 ` Russ Cox
  0 siblings, 1 reply; 5+ messages in thread
From: ISHWAR RATTAN @ 2006-10-17 21:25 UTC (permalink / raw)
  To: 9fans


Have the thread functions changed as I can't
find threadid() and threadpid() in plan9/include/thread.h.

-ishwar



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] plan9port: threadid() etc.
  2006-10-17 21:25 [9fans] plan9port: threadid() etc ISHWAR RATTAN
@ 2006-10-17 21:37 ` Russ Cox
  2006-10-18  0:39   ` ISHWAR RATTAN
  0 siblings, 1 reply; 5+ messages in thread
From: Russ Cox @ 2006-10-17 21:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Have the thread functions changed as I can't
> find threadid() and threadpid() in plan9/include/thread.h.

If you are talking about Plan 9:

They still exist.  I just checked.

If you are talking about the port to Unix:

Threadid exists.  Threadpid does not,
because it does not make sense
(multiple procs might share the same pid,
so using the pid to identify a proc is a
road to disaster).

Russ


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] plan9port: threadid() etc.
  2006-10-17 21:37 ` Russ Cox
@ 2006-10-18  0:39   ` ISHWAR RATTAN
  2006-10-18 15:31     ` Russ Cox
  0 siblings, 1 reply; 5+ messages in thread
From: ISHWAR RATTAN @ 2006-10-18  0:39 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



On Tue, 17 Oct 2006, Russ Cox wrote:

> If you are talking about the port to Unix:
> Threadid exists.  Threadpid does not,

For threadid(), the compiler 9c complainsabout implicit
declaration of threadid(), so, I checked in the header file
there is no prototype for threadid() and linker can't find it.
I did include <thread.h>..

-ishwar

> because it does not make sense
> (multiple procs might share the same pid,
> so using the pid to identify a proc is a
> road to disaster).
>
> Russ
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] plan9port: threadid() etc.
  2006-10-18  0:39   ` ISHWAR RATTAN
@ 2006-10-18 15:31     ` Russ Cox
  2006-10-19  5:33       ` ISHWAR RATTAN
  0 siblings, 1 reply; 5+ messages in thread
From: Russ Cox @ 2006-10-18 15:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> For threadid(), the compiler 9c complainsabout implicit
> declaration of threadid(), so, I checked in the header file
> there is no prototype for threadid() and linker can't find it.
> I did include <thread.h>..

I see it here:

http://swtch.com/usr/local/plan9/include/thread.h
http://swtch.com/usr/local/plan9/src/libthread/thread.c

Russ


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] plan9port: threadid() etc.
  2006-10-18 15:31     ` Russ Cox
@ 2006-10-19  5:33       ` ISHWAR RATTAN
  0 siblings, 0 replies; 5+ messages in thread
From: ISHWAR RATTAN @ 2006-10-19  5:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



On Wed, 18 Oct 2006, Russ Cox wrote:

> I see it here:
>
> http://swtch.com/usr/local/plan9/include/thread.h
> http://swtch.com/usr/local/plan9/src/libthread/thread.c

I will try the latest archive again.

-ishwar


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-19  5:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-17 21:25 [9fans] plan9port: threadid() etc ISHWAR RATTAN
2006-10-17 21:37 ` Russ Cox
2006-10-18  0:39   ` ISHWAR RATTAN
2006-10-18 15:31     ` Russ Cox
2006-10-19  5:33       ` ISHWAR RATTAN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).