1 | /*
|
---|
2 | * $Id: pthread.h 80 2008-03-04 23:32:10Z sam $
|
---|
3 | ****************************************************************************
|
---|
4 | *
|
---|
5 | * COPYRIGHT NOTICE
|
---|
6 | *
|
---|
7 | * Copyright (C) 1995, 1996 Michael T. Peterson
|
---|
8 | * This file is part of the PCthreads (tm) multithreading library
|
---|
9 | * package.
|
---|
10 | *
|
---|
11 | * The source files and libraries constituting the PCthreads (tm) package
|
---|
12 | * are free software; you can redistribute them and/or modify them under
|
---|
13 | * the terms of the GNU Library General Public License as published by the Free
|
---|
14 | * Software Foundation; either version 2 of the License, or (at your
|
---|
15 | * option) any later version.
|
---|
16 | *
|
---|
17 | * The PCthreads (tm) package is distributed in the hope that it will
|
---|
18 | * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * Library General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU Library General Public
|
---|
23 | * License along with this library (see the file COPYING.LIB); if not,
|
---|
24 | * write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
|
---|
25 | * MA 02139, USA.
|
---|
26 | *
|
---|
27 | * To report bugs, bug fixes, or provide feedback you may contact the
|
---|
28 | * author, Michael T. Peterson, at either of the two email addresses listed
|
---|
29 | * below:
|
---|
30 | *
|
---|
31 | * mtp@big.aa.net (preferred)
|
---|
32 | * mtp@zso.dec.com
|
---|
33 | *
|
---|
34 | *
|
---|
35 | * Michael T. Peterson
|
---|
36 | * Redmond, WA.
|
---|
37 | * 13 January, 1996
|
---|
38 | ****************************************************************************
|
---|
39 | * $Log: pthread.h,v $
|
---|
40 | * Revision 1.1 1996/08/26 18:24:53 jc
|
---|
41 | * new and improved!
|
---|
42 | *
|
---|
43 | * Revision 1.1.1.1 1996/06/29 01:20:53 mtp
|
---|
44 | * pthreads 1.0 distribution
|
---|
45 | *
|
---|
46 | * Revision 1.1.1.1 1996/06/28 15:45:41 mtp
|
---|
47 | * Official V1.0 Sources
|
---|
48 | *
|
---|
49 | * Revision 2.0 1996/06/28 14:58:13 mtp
|
---|
50 | * + Release 2.0
|
---|
51 | *
|
---|
52 | * Revision 1.6 1996/01/14 20:17:08 mtp
|
---|
53 | * + Changed prototype for pthread_unblockasync_np() to return void.
|
---|
54 | *
|
---|
55 | * Revision 1.5 1996/01/14 18:32:44 mtp
|
---|
56 | * + Replaced @Header@ with COPYRIGHT NOTICE.
|
---|
57 | *
|
---|
58 | * Revision 1.4 1996/01/10 19:05:23 mtp
|
---|
59 | * + Removed prototypes for pthread_mutex_{get,set}prio_ceiling().
|
---|
60 | *
|
---|
61 | * Revision 1.3 1996/01/10 17:15:01 mtp
|
---|
62 | * + Added prototypes for pthread_blockasync_np(), pthread_unblockasync_np(),
|
---|
63 | * and pthread_cond_signal_intr_np().
|
---|
64 | * + Added comments for all pthread_xxxxx_np() functions.
|
---|
65 | *
|
---|
66 | * Revision 1.2 1995/12/31 06:21:26 mtp
|
---|
67 | * + Changed pthread_get_errno_np() to pthread_geterrno_np().
|
---|
68 | * + Changed pthread_set_errno_np() to pthread_seterrno_np().
|
---|
69 | * + Changed pthread_get_expiration_np() to pthread_getexpiration_np().
|
---|
70 | *
|
---|
71 | * Revision 1.1.1.1 1995/12/16 21:42:00 mtp
|
---|
72 | * Placed under CVS control
|
---|
73 | *
|
---|
74 | ****************************************************************************
|
---|
75 | */
|
---|
76 | #ifndef _pthread_
|
---|
77 | #define _pthread_
|
---|
78 |
|
---|
79 | #ifdef __cplusplus
|
---|
80 | extern "C" {
|
---|
81 | #endif
|
---|
82 | #include <unistd.h>
|
---|
83 | #include "typedefs.h"
|
---|
84 |
|
---|
85 | /*
|
---|
86 | * -- Forward declare these pointers to structures that will be defined
|
---|
87 | * internally.
|
---|
88 | */
|
---|
89 | typedef int pthread_key_t;
|
---|
90 | typedef struct PTHREAD_HANDLE * pthread_t;
|
---|
91 | typedef struct PTHREAD_MUTEX_HANDLE * pthread_mutex_t;
|
---|
92 | typedef struct PTHREAD_CONDV_HANDLE * pthread_cond_t;
|
---|
93 | typedef struct PTHREAD_ATTR_HANDLE * pthread_attr_t;
|
---|
94 | typedef struct PTHREAD_MUTEXATTR_HANDLE * pthread_mutexattr_t;
|
---|
95 | typedef struct PTHREAD_CONDATTR_HANDLE * pthread_condattr_t;
|
---|
96 |
|
---|
97 | /*
|
---|
98 | * -- These constants inform clients of the capabilities
|
---|
99 | * of PCthreads
|
---|
100 | */
|
---|
101 | #define _POSIX_THREADS
|
---|
102 | #define _POSIX_THREAD_ATTR_STACKSIZE
|
---|
103 | #define _POSIX_THREAD_PRIORITY_SCHEDULING
|
---|
104 | #define _POSIX_THREAD_PRIO_PROTECT
|
---|
105 | #define _POSIX_THREAD_PRIO_INHERIT
|
---|
106 |
|
---|
107 | #ifdef _POSIX_THREADS_PROCESS_SHARED
|
---|
108 | #undef _POSIX_THREADS_PROCESS_SHARED
|
---|
109 | #endif
|
---|
110 |
|
---|
111 | #define PTHREAD_KEYS_MAX PTHREAD_C_MAX_DATAKEYS
|
---|
112 | #define PTHREAD_DESTRUCTOR_ITERATIONS ((int) 100)
|
---|
113 |
|
---|
114 | /*
|
---|
115 | * -- These constants are required by POSIX.1c
|
---|
116 | */
|
---|
117 | #define SCHED_FIFO ((int) SCHED_FCFS_C)
|
---|
118 | #define SCHED_RR ((int) SCHED_ROUND_ROBIN_C)
|
---|
119 | #define SCHED_OTHER ((int) SCHED_PRIORITY_DECAY_C)
|
---|
120 |
|
---|
121 | #define PRI_FIFO_MIN PTHREAD_MIN_PRIO_C
|
---|
122 | #define PRI_FIFO_DEFAULT PTHREAD_DEFAULT_PRIO_C
|
---|
123 | #define PRI_FIFO_MAX PTHREAD_MAX_PRIO_C
|
---|
124 |
|
---|
125 | #define PRI_RR_MIN PRI_FIFO_MIN
|
---|
126 | #define PRI_RR_DEFAULT PRI_FIFO_DEFAULT
|
---|
127 | #define PRI_RR_MAX PRI_FIFO_MAX
|
---|
128 |
|
---|
129 | #define PRI_OTHER_MIN PRI_FIFO_MIN
|
---|
130 | #define PRI_OTHER_DEFAULT PRI_FIFO_DEFAULT
|
---|
131 | #define PRI_OTHER_MAX PRI_FIFO_MAX
|
---|
132 |
|
---|
133 | #define PTHREAD_INHERIT_SCHED PTHREAD_USE_ATTRIBUTES_C
|
---|
134 | #define PTHREAD_DEFAULT_SCHED PTHREAD_SCHED_INHERIT_C
|
---|
135 |
|
---|
136 | #define PTHREAD_CANCEL_ENABLE THREAD_CANCEL_ENABLED_C
|
---|
137 | #define PTHREAD_CANCEL_DISABLE THREAD_CANCEL_DISABLED_C
|
---|
138 | #define PTHREAD_CANCEL_DEFERRED THREAD_CANCEL_DEFERRED_C
|
---|
139 | #define PTHREAD_CANCEL_ASYNCHRONOUS THREAD_CANCEL_ASYNC_C
|
---|
140 | #define PTHREAD_CANCELED (0xDEADBABE)
|
---|
141 |
|
---|
142 | #define MUTEX_SCHED_DEFAULT SCHED_MUTEX_NO_PRIO_INHERIT_C
|
---|
143 | #define MUTEX_SCHED_INHERIT SCHED_MUTEX_PRIO_INHERIT_C
|
---|
144 | #define MUTEX_SCHED_PROTECT SCHED_MUTEX_PRIO_PROTECT_C
|
---|
145 |
|
---|
146 | #define PTHREAD_CREATE_JOINABLE PTHREAD_JOINABLE_C
|
---|
147 | #define PTHREAD_CREATE_DETACHED PTHREAD_DETACHED_C
|
---|
148 |
|
---|
149 | /*-------------------------------------------------------------------------*
|
---|
150 | * -- POSIX .1c API services. *
|
---|
151 | *-------------------------------------------------------------------------*/
|
---|
152 |
|
---|
153 | /*
|
---|
154 | * This service allows a thread to wait for a specified set of signals
|
---|
155 | * to be delivered to the process. Upon delivery of any one of the set
|
---|
156 | * of signals, the thread returns from this function with the value of
|
---|
157 | * the delivered signal. The sigwait() service is a cancellation point.
|
---|
158 | */
|
---|
159 | extern int
|
---|
160 | sigwait( sigset_t sigset );
|
---|
161 |
|
---|
162 |
|
---|
163 | /*
|
---|
164 | * Client applications should use pthread_sigmask() instead of sigprocmask().
|
---|
165 | * In fact, all occurrences of sigprocmask are redefined to pthread_sigmask()
|
---|
166 | * by this header file.
|
---|
167 | */
|
---|
168 | extern int
|
---|
169 | pthread_sigmask( int how, const sigset_t *newmask, sigset_t *prev );
|
---|
170 |
|
---|
171 |
|
---|
172 | /*
|
---|
173 | * This routine sends a signal to a specified thread. Any signal defined to
|
---|
174 | * stop, continue, or terminate will be applied to all threads in the
|
---|
175 | * process, i.e., the effect will be process-wide. For example, sending
|
---|
176 | * SIGTERM to *any* thread terminates *all* threads in the process - Even
|
---|
177 | * though it may be handled by the thread to which it was sent.
|
---|
178 | */
|
---|
179 | extern int
|
---|
180 | pthread_kill( pthread_t handle, int sig );
|
---|
181 |
|
---|
182 |
|
---|
183 | extern int
|
---|
184 | pthread_create( pthread_t *handle,
|
---|
185 | pthread_attr_t *th_attr,
|
---|
186 | void * (*th_proc)(void *),
|
---|
187 | void * th_proc_arg );
|
---|
188 | extern int
|
---|
189 | pthread_join( pthread_t handle, void **return_value );
|
---|
190 |
|
---|
191 | extern int
|
---|
192 | pthread_detach( pthread_t handle );
|
---|
193 |
|
---|
194 | extern int
|
---|
195 | pthread_setschedparam( pthread_t handle,
|
---|
196 | int policy,
|
---|
197 | const struct sched_param *param );
|
---|
198 |
|
---|
199 | extern int
|
---|
200 | pthread_getschedparam( pthread_t handle,
|
---|
201 | int *policy,
|
---|
202 | struct sched_param *param );
|
---|
203 | extern int
|
---|
204 | pthread_once( pthread_once_t *once_control,
|
---|
205 | void (*init_routine)(void));
|
---|
206 |
|
---|
207 | extern pthread_t
|
---|
208 | pthread_self( void );
|
---|
209 |
|
---|
210 | extern int
|
---|
211 | pthread_key_create( pthread_key_t *key, void (*destructor)(void *) );
|
---|
212 |
|
---|
213 | extern int
|
---|
214 | pthread_getspecific( pthread_key_t key, void **value );
|
---|
215 |
|
---|
216 | extern int
|
---|
217 | pthread_setspecific( pthread_key_t key, void *value );
|
---|
218 |
|
---|
219 | extern int
|
---|
220 | pthread_cancel( pthread_t th_h );
|
---|
221 |
|
---|
222 | extern void
|
---|
223 | pthread_testcancel( void );
|
---|
224 |
|
---|
225 | extern int
|
---|
226 | pthread_setcancelstate( int new_state, int *prev_state );
|
---|
227 |
|
---|
228 | extern int
|
---|
229 | pthread_setcanceltype( int new_type, int *old_type );
|
---|
230 |
|
---|
231 | extern void
|
---|
232 | pthread_cleanup_push( void (*cleanup_routine)(void *), void *arg );
|
---|
233 |
|
---|
234 | extern void
|
---|
235 | pthread_cleanup_pop( int execute );
|
---|
236 |
|
---|
237 | extern void
|
---|
238 | pthread_yield( void *arg );
|
---|
239 |
|
---|
240 | extern int
|
---|
241 | pthread_equal( pthread_t th1_handle, pthread_t th2_handle );
|
---|
242 |
|
---|
243 | extern void
|
---|
244 | pthread_exit( void *exit_value );
|
---|
245 |
|
---|
246 | extern int
|
---|
247 | pthread_mutex_init( pthread_mutex_t *handle,
|
---|
248 | pthread_mutexattr_t *mu_attr_h );
|
---|
249 |
|
---|
250 | extern int
|
---|
251 | pthread_mutex_destroy( pthread_mutex_t *handle );
|
---|
252 |
|
---|
253 | extern int
|
---|
254 | pthread_mutex_lock( pthread_mutex_t *handle );
|
---|
255 |
|
---|
256 | extern int
|
---|
257 | pthread_mutex_unlock( pthread_mutex_t *handle );
|
---|
258 |
|
---|
259 | extern int
|
---|
260 | pthread_mutex_trylock( pthread_mutex_t *mu_h );
|
---|
261 |
|
---|
262 | extern int
|
---|
263 | pthread_cond_init( pthread_cond_t *handle, pthread_condattr_t *cv_attr_h );
|
---|
264 |
|
---|
265 | extern int
|
---|
266 | pthread_cond_destroy( pthread_cond_t *handle );
|
---|
267 |
|
---|
268 | extern int
|
---|
269 | pthread_cond_wait( pthread_cond_t *cv_h, pthread_mutex_t *mu_h );
|
---|
270 |
|
---|
271 | extern int
|
---|
272 | pthread_cond_signal( pthread_cond_t *handle );
|
---|
273 |
|
---|
274 | extern int
|
---|
275 | pthread_cond_broadcast( pthread_cond_t *handle );
|
---|
276 |
|
---|
277 | extern int
|
---|
278 | pthread_cond_timedwait( pthread_cond_t *cv_h,
|
---|
279 | pthread_mutex_t *mu_h,
|
---|
280 | const struct timespec *abstime );
|
---|
281 |
|
---|
282 | extern int
|
---|
283 | pthread_attr_init( pthread_attr_t *handle );
|
---|
284 |
|
---|
285 | extern int
|
---|
286 | pthread_attr_destroy( pthread_attr_t *handle );
|
---|
287 |
|
---|
288 | extern int
|
---|
289 | pthread_attr_setdetachstate( pthread_attr_t *handle,
|
---|
290 | int detached_state );
|
---|
291 | extern int
|
---|
292 | pthread_attr_getdetachstate( pthread_attr_t *handle,
|
---|
293 | int *detached_state );
|
---|
294 |
|
---|
295 | extern int
|
---|
296 | pthread_attr_setstacksize( pthread_attr_t *handle, size_t stack_size );
|
---|
297 |
|
---|
298 | extern int
|
---|
299 | pthread_attr_getstacksize( pthread_attr_t *handle, size_t *stack_size );
|
---|
300 |
|
---|
301 | extern int
|
---|
302 | pthread_attr_setinheritsched( pthread_attr_t *handle, int inherit_sched );
|
---|
303 |
|
---|
304 | extern int
|
---|
305 | pthread_attr_getinheritsched( pthread_attr_t *handle, int *inherit_sched );
|
---|
306 |
|
---|
307 | extern int
|
---|
308 | pthread_attr_setschedpolicy( pthread_attr_t *handle, int sched_policy );
|
---|
309 |
|
---|
310 | extern int
|
---|
311 | pthread_attr_getschedpolicy( pthread_attr_t *handle, int *sched_policy );
|
---|
312 |
|
---|
313 | /*
|
---|
314 | * -- The xxxschedparam() routines replace the get/setscheduler() and
|
---|
315 | * get/setprio() routines.
|
---|
316 | */
|
---|
317 | extern int
|
---|
318 | pthread_attr_getschedparam( pthread_attr_t *handle,
|
---|
319 | struct sched_param *sched_param );
|
---|
320 |
|
---|
321 | extern int
|
---|
322 | pthread_attr_setschedparam( pthread_attr_t *handle,
|
---|
323 | const struct sched_param *sched_param );
|
---|
324 |
|
---|
325 | extern int
|
---|
326 | pthread_attr_getschedpriority( pthread_attr_t *handle, int *sched_priority );
|
---|
327 |
|
---|
328 | extern int
|
---|
329 | pthread_mutexattr_init( pthread_mutexattr_t *handle );
|
---|
330 |
|
---|
331 | extern int
|
---|
332 | pthread_mutexattr_destroy( pthread_mutexattr_t *handle );
|
---|
333 |
|
---|
334 | extern int
|
---|
335 | pthread_mutexattr_setprotocol(pthread_mutexattr_t *handle,
|
---|
336 | pthread_protocol_t protocol );
|
---|
337 |
|
---|
338 | extern int
|
---|
339 | pthread_mutexattr_getprotocol( pthread_mutexattr_t *handle,
|
---|
340 | pthread_protocol_t *protocol );
|
---|
341 |
|
---|
342 | extern int
|
---|
343 | pthread_mutexattr_getprio_ceiling( pthread_mutexattr_t *handle,
|
---|
344 | int *prio_ceiling );
|
---|
345 |
|
---|
346 | extern int
|
---|
347 | pthread_mutexattr_setprio_ceiling( pthread_mutexattr_t *handle,
|
---|
348 | int prio_ceiling );
|
---|
349 |
|
---|
350 | extern int
|
---|
351 | pthread_condattr_init( pthread_condattr_t *handle );
|
---|
352 |
|
---|
353 | extern int
|
---|
354 | pthread_condattr_destroy( pthread_condattr_t *handle );
|
---|
355 |
|
---|
356 | /*
|
---|
357 | * -- Utility functions (non-portable)
|
---|
358 | */
|
---|
359 | extern int
|
---|
360 | pthread_delay_np( const struct timespec *interval );
|
---|
361 |
|
---|
362 |
|
---|
363 | /*
|
---|
364 | * Return the thread's sequence number. This is a unique,
|
---|
365 | * integer valued number such that (2 <= N <= MAX_INT).
|
---|
366 | */
|
---|
367 | extern long
|
---|
368 | pthread_getsequence_np( const pthread_t handle );
|
---|
369 |
|
---|
370 | /*
|
---|
371 | * Return the absolute time as the sum of the interval (delta)
|
---|
372 | * and the current time.
|
---|
373 | */
|
---|
374 | extern int
|
---|
375 | pthread_getexpiration_np( const struct timespec *delta,
|
---|
376 | struct timespec *abstime );
|
---|
377 |
|
---|
378 | /*
|
---|
379 | * Returns a process-wide count of the number of thread context
|
---|
380 | * switches.
|
---|
381 | */
|
---|
382 | extern int
|
---|
383 | pthread_get_ctxsw_counts_np( pthread_t handle,
|
---|
384 | unsigned long *total_count,
|
---|
385 | unsigned long *async_count );
|
---|
386 |
|
---|
387 | /*
|
---|
388 | * Return the number of bytes of stack that have not been
|
---|
389 | * used. Call this routine at the end of a thread's procedure
|
---|
390 | * to see whether you've allocated too much stack space.
|
---|
391 | */
|
---|
392 | extern int
|
---|
393 | pthread_checkstack_np( pthread_t handle, size_t *bytes );
|
---|
394 |
|
---|
395 | /*
|
---|
396 | * Return the thread-specific errno value, or Zero.
|
---|
397 | */
|
---|
398 | extern int
|
---|
399 | pthread_geterrno_np( pthread_t handle, int *err );
|
---|
400 |
|
---|
401 | /*
|
---|
402 | * Set a thread-specific errno value.
|
---|
403 | */
|
---|
404 | extern int
|
---|
405 | pthread_seterrno_np( int err );
|
---|
406 |
|
---|
407 | /*
|
---|
408 | * Return the number of threads waiting at the specified
|
---|
409 | * condition variable.
|
---|
410 | */
|
---|
411 | extern int
|
---|
412 | pthread_cond_getwaiters_np( pthread_cond_t handle,
|
---|
413 | unsigned int *waiting_threads );
|
---|
414 |
|
---|
415 | /*
|
---|
416 | * Allow a condition variable to be signaled from an interrupt
|
---|
417 | * handler. E.g., signal a condition variable from a ctrl-C interrupt.
|
---|
418 | */
|
---|
419 | extern int
|
---|
420 | pthread_cond_signal_intr_np( pthread_cond_t *handle );
|
---|
421 |
|
---|
422 | /*
|
---|
423 | * Return the number of threads blocked at a specified mutex.
|
---|
424 | */
|
---|
425 | extern int
|
---|
426 | pthread_mutex_getblocked_np( pthread_mutex_t handle,
|
---|
427 | unsigned int *blocked_threads );
|
---|
428 |
|
---|
429 | /*
|
---|
430 | * Obtain the execution priority of the specified thread.
|
---|
431 | */
|
---|
432 | extern int
|
---|
433 | pthread_getprio_np( pthread_t handle, int *current_prio );
|
---|
434 |
|
---|
435 | /*
|
---|
436 | * Set the execution priority of the specified thread.
|
---|
437 | */
|
---|
438 | extern int
|
---|
439 | pthread_setprio_np( pthread_t handle, int new_priority );
|
---|
440 |
|
---|
441 | /*
|
---|
442 | * Thread-safe wrapper for UNIX gettimeofday() function.
|
---|
443 | */
|
---|
444 | extern int
|
---|
445 | pthread_gettimeofday_np( struct timeval *tv, struct timezone *tz );
|
---|
446 |
|
---|
447 | /*
|
---|
448 | * Lock and unlock the single, process-wide mutex.
|
---|
449 | */
|
---|
450 | extern int
|
---|
451 | pthread_lock_global_np( void );
|
---|
452 |
|
---|
453 | extern int
|
---|
454 | pthread_unlock_global_np( void );
|
---|
455 |
|
---|
456 | /*
|
---|
457 | * Block and unblock asynchronous thread context switches. Use
|
---|
458 | * as follows:
|
---|
459 | *
|
---|
460 | * flag = pthread_blockasync_np();
|
---|
461 | * .
|
---|
462 | * .
|
---|
463 | * .
|
---|
464 | * (void) pthread_unblockasync_np( flag );
|
---|
465 | *
|
---|
466 | * Use with great caution and do not execute any functions that
|
---|
467 | * may cause the thread to take a synchronous context switch, e.g.,
|
---|
468 | * lock a mutex, signal a condition variable, etc.
|
---|
469 | */
|
---|
470 | extern int
|
---|
471 | pthread_blockasync_np( void );
|
---|
472 |
|
---|
473 | extern void
|
---|
474 | pthread_unblockasync_np( int flag );
|
---|
475 |
|
---|
476 | /*
|
---|
477 | * Return some process-wide statistics.
|
---|
478 | */
|
---|
479 | extern int
|
---|
480 | system_get_state( unsigned long *intr_count,
|
---|
481 | unsigned long *ctxsw_count,
|
---|
482 | unsigned long *async_preemptions,
|
---|
483 | unsigned long *elapsed_time,
|
---|
484 | int *active_priority );
|
---|
485 |
|
---|
486 | /*
|
---|
487 | * A thread-safe wrapper for sigaction.
|
---|
488 | */
|
---|
489 | extern int
|
---|
490 | pthread_sigaction_np( int signal,
|
---|
491 | const struct sigaction *new_action,
|
---|
492 | struct sigaction *prev_action );
|
---|
493 |
|
---|
494 | #undef sigprocmask
|
---|
495 | #define sigprocmask pthread_sigmask
|
---|
496 |
|
---|
497 | #undef gettimeofday
|
---|
498 | #define gettimeofday pthread_gettimeofday_np
|
---|
499 |
|
---|
500 | #ifdef _DCE_COMPAT_
|
---|
501 | #include <pthread_dce.h>
|
---|
502 | #endif
|
---|
503 |
|
---|
504 | #ifdef __cplusplus
|
---|
505 | }
|
---|
506 | #endif
|
---|
507 | #endif
|
---|