179 |
|
|
180 |
/* Create a thread with attributes given by ATTR, executing |
/* Create a thread with attributes given by ATTR, executing |
181 |
START_ROUTINE with argument ARG. */ |
START_ROUTINE with argument ARG. */ |
182 |
extern int pthread_create (pthread_t *__thread, __const pthread_attr_t *__attr, |
extern int pthread_create (pthread_t *__threadp, |
183 |
|
__const pthread_attr_t *__attr, |
184 |
void *(*__start_routine)(void *), void *__arg); |
void *(*__start_routine)(void *), void *__arg); |
185 |
|
|
186 |
/* Terminate the current thread and make STATUS available to any |
/* Terminate the current thread and make STATUS available to any |
189 |
|
|
190 |
/* Make calling thread wait for termination of thread THREAD. Return |
/* Make calling thread wait for termination of thread THREAD. Return |
191 |
the exit status of the thread in *STATUS. */ |
the exit status of the thread in *STATUS. */ |
192 |
extern int pthread_join (pthread_t __thread, void **__status); |
extern int pthread_join (pthread_t __threadp, void **__status); |
193 |
|
|
194 |
/* Indicate that the storage for THREAD can be reclaimed when it |
/* Indicate that the storage for THREAD can be reclaimed when it |
195 |
terminates. */ |
terminates. */ |
196 |
extern int pthread_detach (pthread_t __thread); |
extern int pthread_detach (pthread_t __threadp); |
197 |
|
|
198 |
/* Compare thread IDs T1 and T2. Return nonzero if they are equal, 0 |
/* Compare thread IDs T1 and T2. Return nonzero if they are equal, 0 |
199 |
if they are not. */ |
if they are not. */ |