Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pthread_create() fails with no error code

807567Oct 10 2004 — edited Oct 17 2004
Hi,

following piece of code works well under Linux and is used to create a new thread:

rc=pthread_attr_init(&tattr);
...
rc=pthr ead_attr_setdetachstate(&tattr,PTHREAD_CREATE_DETACHED);
...
rc=pthread_create(&thread1,&tattr,&WatchdogThread,(void*)&MyPID);

Here the call of pthread_create() fails with a return code of -1 but errno is 0 so that I don't have an idea what the problem could be.

Does anybody have an idea?

Kind regards

Oxy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2004
Added on Oct 10 2004
4 comments
393 views