Help me!
When I used pthread_create at shared library,
It didn't work at all, I start a thread with the
following code:
...
pthread_t idthread;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_create(&idthread, &attr,
myroutine, (void*) myarg);
pthread_join(&idthread, NULL);
...
It is ok when I put it to NON-SHARED(such as
a.out) but the thread didn't start at all.
please give help
Yours sincerely,
Jackie Chen
chenjifu@kali.com.cn
5/11, 2001
Shanghai, P.R.C.
|