1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #include "test.h"
- static void *
- func(void * arg)
- {
- pthread_exit(arg);
-
- assert(0);
- return NULL;
- }
- int pthread_test_exit2()
- {
- pthread_t t;
- assert(pthread_create(&t, NULL, func, (void *) NULL) == 0);
- pte_osThreadSleep(1000);
- assert(pthread_join(t,NULL) == 0);
- return 0;
- }
|