On 2008.10.02., at 13:48, Maurilio Longo wrote:

Szakáts Viktor wrote:
IMO, zero for main thread is alright.
I think it should be 1 (one) given that the first thread I create has a
threadid of 2 and so on.

This way it something doesn't seem to be right indeed.

I'd think, the first thread (above main one) should get ID #1, second
#2, etc.


No, main thread is a thread, just like the others, so it has to be thread 1;
while do you want to treat the first thread in a different way?

For me the main thread is special, because
it has some properties which other threads
don't have. At least if I understand it
correctly. hb_threadID() could also return
zero for ST programs, without breaking too
much MT code.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to