pthread_create() fails with no error code
807567Oct 10 2004 — edited Oct 17 2004Hi,
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