2007-03-20 17:51:12 +01:00
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* pthread.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
|
|
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
|
|
|
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
|
|
|
|
* used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
#ifndef __PTHREAD_H
|
|
|
|
#define __PTHREAD_H
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Included Files
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-02-20 23:39:56 +01:00
|
|
|
#include <nuttx/config.h> /* Default settings */
|
2007-02-27 22:17:21 +01:00
|
|
|
#include <nuttx/compiler.h> /* Compiler settings */
|
2007-02-20 23:39:56 +01:00
|
|
|
#include <sys/types.h> /* Needed for general types */
|
|
|
|
#include <semaphore.h> /* Needed for sem_t */
|
2007-03-24 00:22:22 +01:00
|
|
|
#include <signal.h> /* Needed for sigset_t */
|
2007-02-20 23:39:56 +01:00
|
|
|
#include <time.h> /* Needed for struct timespec */
|
|
|
|
#include <nuttx/compiler.h> /* For noreturn_function */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Compilation Switches
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
/* Standard POSIX switches */
|
|
|
|
|
|
|
|
#ifndef _POSIX_THREADS
|
|
|
|
#define _POSIX_THREADS
|
|
|
|
#endif
|
|
|
|
#ifndef _POSIX_THREAD_ATTR_STACKSIZE
|
|
|
|
#define _POSIX_THREAD_ATTR_STACKSIZE
|
|
|
|
#endif
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Definitions
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
/* Values for the process shared (pshared) attribute */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
#define PTHREAD_PROCESS_PRIVATE 0
|
|
|
|
#define PTHREAD_PROCESS_SHARED 1
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
/* Valid ranges for the pthread stacksize attribute */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
#define PTHREAD_STACK_MIN CONFIG_PTHREAD_STACK_MIN
|
|
|
|
#define PTHREAD_STACK_DEFAULT CONFIG_PTHREAD_STACK_DEFAULT
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
/* Values for the pthread inheritsched attribute */
|
|
|
|
|
|
|
|
#define PTHREAD_INHERIT_SCHED 0
|
|
|
|
#define PTHREAD_EXPLICIT_SCHED 1
|
|
|
|
|
|
|
|
#define PTHREAD_PRIO_NONE 0
|
|
|
|
#define PTHREAD_PRIO_INHERIT 1
|
|
|
|
#define PTHREAD_PRIO_PROTECT 2
|
|
|
|
|
|
|
|
#define PTHREAD_DEFAULT_PRIORITY 100
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
/* Cancellation states returned by pthread_cancelstate() */
|
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
#define PTHREAD_CANCEL_ENABLE (0)
|
|
|
|
#define PTHREAD_CANCEL_DISABLE (1)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
/* Thread return value when a pthread is canceled */
|
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
#define PTHREAD_CANCELED ((FAR void*)ERROR)
|
|
|
|
|
|
|
|
/* Used to initialize a pthread_once_t */
|
|
|
|
|
|
|
|
#define PTHREAD_ONCE_INIT (FALSE)
|
|
|
|
|
|
|
|
/* This is returned by pthread_wait. It must not match any errno in errno.h */
|
|
|
|
|
|
|
|
#define PTHREAD_BARRIER_SERIAL_THREAD 0x1000
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Global Type Declarations
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#define EXTERN extern "C"
|
|
|
|
extern "C" {
|
|
|
|
#else
|
|
|
|
#define EXTERN extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*----------------------------------------------------------*
|
|
|
|
PTHREAD-SPECIFIC TYPES
|
|
|
|
*----------------------------------------------------------*/
|
|
|
|
|
|
|
|
typedef int pthread_key_t;
|
2007-02-27 22:17:21 +01:00
|
|
|
typedef FAR void *pthread_addr_t;
|
2007-02-18 00:21:28 +01:00
|
|
|
typedef pthread_addr_t any_t;
|
|
|
|
|
|
|
|
typedef pthread_addr_t (*pthread_startroutine_t)(pthread_addr_t);
|
|
|
|
typedef pthread_startroutine_t pthread_func_t;
|
|
|
|
|
|
|
|
struct pthread_addr_s
|
|
|
|
{
|
2007-02-27 22:17:21 +01:00
|
|
|
size_t stacksize; /* Size of the stack allocated for the pthead */
|
|
|
|
short priority; /* Priority of the pthread */
|
|
|
|
ubyte policy; /* Pthread scheduler policy */
|
|
|
|
ubyte inheritsched; /* Inherit parent prio/policy? */
|
2007-02-18 00:21:28 +01:00
|
|
|
};
|
|
|
|
typedef struct pthread_addr_s pthread_attr_t;
|
|
|
|
|
2007-02-20 23:39:56 +01:00
|
|
|
typedef pid_t pthread_t;
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
typedef int pthread_condattr_t;
|
|
|
|
|
|
|
|
struct pthread_cond_s
|
|
|
|
{
|
|
|
|
sem_t sem;
|
|
|
|
};
|
|
|
|
typedef struct pthread_cond_s pthread_cond_t;
|
|
|
|
#define PTHREAD_COND_INITIALIZER {{0, 0xffff}}
|
|
|
|
|
|
|
|
struct pthread_mutexattr_s
|
|
|
|
{
|
|
|
|
int pshared;
|
|
|
|
};
|
|
|
|
typedef struct pthread_mutexattr_s pthread_mutexattr_t;
|
|
|
|
|
|
|
|
struct pthread_mutex_s
|
|
|
|
{
|
|
|
|
int pid;
|
|
|
|
sem_t sem;
|
|
|
|
};
|
|
|
|
typedef struct pthread_mutex_s pthread_mutex_t;
|
|
|
|
#define PTHREAD_MUTEX_INITIALIZER {0, {1, 0xffff}}
|
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
struct pthread_barrierattr_s
|
|
|
|
{
|
|
|
|
int pshared;
|
|
|
|
};
|
|
|
|
typedef struct pthread_barrierattr_s pthread_barrierattr_t;
|
|
|
|
|
|
|
|
struct pthread_barrier_s
|
|
|
|
{
|
|
|
|
sem_t sem;
|
|
|
|
unsigned int count;
|
|
|
|
};
|
|
|
|
typedef struct pthread_barrier_s pthread_barrier_t;
|
|
|
|
|
|
|
|
typedef boolean pthread_once_t;
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Forware references */
|
|
|
|
|
|
|
|
struct sched_param; /* Defined in sched.h */
|
|
|
|
|
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Global Variables
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/********************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Global Function Prototypes
|
2007-03-20 17:51:12 +01:00
|
|
|
********************************************************************************/
|
2007-03-24 00:22:22 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Initializes a thread attributes object (attr) with default values for all of
|
|
|
|
* the individual attributes used by a given implementation.
|
|
|
|
*/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_attr_init(pthread_attr_t *attr);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* An attributes object can be deleted when it is no longer needed. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_attr_destroy(pthread_attr_t *attr);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Set or obtain the default scheduling algorithm */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy);
|
|
|
|
EXTERN int pthread_attr_getschedpolicy(pthread_attr_t *attr, int *policy);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_attr_setschedparam(pthread_attr_t *attr,
|
2007-03-20 17:51:12 +01:00
|
|
|
const struct sched_param *param);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_attr_getschedparam(pthread_attr_t *attr,
|
2007-03-20 17:51:12 +01:00
|
|
|
struct sched_param *param);
|
|
|
|
EXTERN int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_attr_getinheritsched(const pthread_attr_t *attr,
|
2007-03-20 17:51:12 +01:00
|
|
|
int *inheritsched);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Set or obtain the default stack size */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_attr_setstacksize(pthread_attr_t *attr, long stacksize);
|
|
|
|
EXTERN int pthread_attr_getstacksize(pthread_attr_t *attr, long *stackaddr);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* To create a thread object and runnable thread, a routine must be specified
|
|
|
|
* as the new thread's start routine. An argument may be passed to this
|
|
|
|
* routine, as an untyped address; an untyped address may also be returned as
|
|
|
|
* the routine's value. An attributes object may be used to specify details
|
|
|
|
* about the kind of thread being created.
|
|
|
|
*/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_create(pthread_t *thread, pthread_attr_t *attr,
|
|
|
|
pthread_startroutine_t startroutine,
|
|
|
|
pthread_addr_t arg);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread object may be "detached" to specify that the return value and
|
|
|
|
* completion status will not be requested.
|
|
|
|
*/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_detach(pthread_t thread);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread may terminate it's own execution or the execution of another
|
|
|
|
* thread.
|
|
|
|
*/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-02-27 22:17:21 +01:00
|
|
|
EXTERN void pthread_exit(pthread_addr_t value) noreturn_function;
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_cancel(pthread_t thread);
|
|
|
|
EXTERN int pthread_setcancelstate(int state, int *oldstate);
|
|
|
|
EXTERN void pthread_testcancel(void);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread can await termination of another thread and retrieve the return
|
|
|
|
* value of the thread.
|
|
|
|
*/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_join(pthread_t thread, pthread_addr_t *value);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread may tell the scheduler that its processor can be made available. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN void pthread_yield(void);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread may obtain a copy of its own thread handle. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-02-20 23:39:56 +01:00
|
|
|
#define pthread_self() ((pthread_t)getpid())
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Compare two thread IDs. */
|
2007-03-16 23:44:04 +01:00
|
|
|
|
|
|
|
#define pthread_equal(t1,t2) (t1 == t2)
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Thread scheduling parameters */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_getschedparam(pthread_t thread, int *policy,
|
|
|
|
struct sched_param *param);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_setschedparam(pthread_t thread, int policy,
|
2007-03-20 17:51:12 +01:00
|
|
|
const struct sched_param *param);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Thread-specific Data Interfaces */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_key_create(pthread_key_t *key,
|
2007-02-27 22:17:21 +01:00
|
|
|
FAR void (*destructor)(FAR void*));
|
|
|
|
EXTERN int pthread_setspecific(pthread_key_t key, FAR void *value);
|
|
|
|
EXTERN FAR void *pthread_getspecific(pthread_key_t key);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_key_delete(pthread_key_t key);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Create, operate on, and destroy mutex attributes. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_mutexattr_init(pthread_mutexattr_t *attr);
|
|
|
|
EXTERN int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_mutexattr_getpshared(pthread_mutexattr_t *attr, int *pshared);
|
|
|
|
EXTERN int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* The following routines create, delete, lock and unlock mutexes. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_mutex_destroy(pthread_mutex_t *mutex);
|
|
|
|
EXTERN int pthread_mutex_lock(pthread_mutex_t *mutex);
|
|
|
|
EXTERN int pthread_mutex_trylock(pthread_mutex_t *mutex);
|
|
|
|
EXTERN int pthread_mutex_unlock(pthread_mutex_t *mutex);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* Operations on condition variables */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_condattr_init(pthread_condattr_t *attr);
|
|
|
|
EXTERN int pthread_condattr_destroy(pthread_condattr_t *attr);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread can create and delete condition variables. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_cond_init(pthread_cond_t *cond, pthread_condattr_t *attr);
|
2007-02-18 00:21:28 +01:00
|
|
|
EXTERN int pthread_cond_destroy(pthread_cond_t *cond);
|
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread can signal to and broadcast on a condition variable. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
EXTERN int pthread_cond_broadcast(pthread_cond_t *cond);
|
2007-02-27 22:17:21 +01:00
|
|
|
EXTERN int pthread_cond_signal(pthread_cond_t *cond);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread can wait for a condition variable to be signalled or broadcast. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
/* A thread can perform a timed wait on a condition variable. */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-20 17:51:12 +01:00
|
|
|
EXTERN int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
|
2007-02-27 22:17:21 +01:00
|
|
|
const struct timespec *abstime);
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-03-24 00:22:22 +01:00
|
|
|
/* Barrier attributes */
|
|
|
|
|
|
|
|
EXTERN int pthread_barrierattr_destroy(FAR pthread_barrierattr_t *attr);
|
|
|
|
EXTERN int pthread_barrierattr_init(FAR pthread_barrierattr_t *attr);
|
|
|
|
EXTERN int pthread_barrierattr_getpshared(FAR const pthread_barrierattr_t *attr,
|
|
|
|
FAR int *pshared);
|
|
|
|
EXTERN int pthread_barrierattr_setpshared(FAR pthread_barrierattr_t *attr,
|
|
|
|
int pshared);
|
|
|
|
|
|
|
|
/* Barriers */
|
|
|
|
|
|
|
|
EXTERN int pthread_barrier_destroy(FAR pthread_barrier_t *barrier);
|
|
|
|
EXTERN int pthread_barrier_init(FAR pthread_barrier_t *barrier,
|
|
|
|
FAR const pthread_barrierattr_t *attr,
|
|
|
|
unsigned int count);
|
|
|
|
EXTERN int pthread_barrier_wait(FAR pthread_barrier_t *barrier);
|
|
|
|
|
|
|
|
/* Pthread initialization */
|
|
|
|
|
|
|
|
EXTERN int pthread_once(FAR pthread_once_t *once_control,
|
|
|
|
CODE void (*init_routine)(void));
|
|
|
|
|
|
|
|
/* Pthread signal management APIs */
|
|
|
|
|
|
|
|
EXTERN int pthread_kill(pthread_t thread, int sig);
|
|
|
|
EXTERN int pthread_sigmask(int how, FAR const sigset_t *set, FAR sigset_t *oset);
|
|
|
|
|
2007-02-18 00:21:28 +01:00
|
|
|
#undef EXTERN
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __PTHREAD_H */
|
|
|
|
|