This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pthread_self inside thread procedure


Hi all,

With the new release, I'm finding that my threads can't detach; at the very start of the thread procedure, they do a pthread_detach(pthread_self()).

This call is returning ESRCH, because while pthread_self() is returning a valid pthread_t structure, the first element of it is always NULL (the second member is consistently a fairly high number, eg. 2312903, but that may not have any significance).

So, unless I'm missing something, it seems that pthread_self() is broken with the new release. Can others reproduce this problem?

Best regards,
Will

--
Will Bryant
Systems Architect, eCOSM.
Phone +64 3 365 4176 | Mobile +64 21 655 443
http://www.ecosm.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]