[Harbour] hb_threadID()
Maurilio Longo
maurilio.longo at libero.it
Thu Oct 2 09:19:18 EDT 2008
Viktor,
can you confirm that I have write rights on svn since I get a 401
authorization required trying to commit.
Best regards.
Szakáts Viktor wrote:
>
> 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 at harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.
More information about the Harbour
mailing list