epoc32/include/stdapis/pthread.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@4
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     3
* All rights reserved.
williamr@4
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@4
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     8
*
williamr@4
     9
* Initial Contributors:
williamr@4
    10
* Nokia Corporation - initial contribution.
williamr@4
    11
*
williamr@4
    12
* Contributors:
williamr@4
    13
*
williamr@4
    14
* Description:  POSIX thread exported header file 
williamr@4
    15
*
williamr@4
    16
*/
williamr@2
    17
williamr@2
    18
#ifndef  PTHREAD_H
williamr@2
    19
#define  PTHREAD_H
williamr@2
    20
williamr@2
    21
#include <pthreadtypes.h>
williamr@2
    22
#include <sched.h>
williamr@2
    23
#include <e32def.h>
williamr@2
    24
#include <stddef.h>
williamr@2
    25
#include <time.h>
williamr@2
    26
#include <limits.h>
williamr@2
    27
#include <pthreadalias.h>
williamr@2
    28
williamr@2
    29
#define POSIX_THREAD_DESTRUCTOR_ITERATIONS  4
williamr@2
    30
#define POSIX_THREAD_KEYS_MAX               128
williamr@2
    31
#define PTHREAD_STACK_MIN                   0x2000
williamr@2
    32
#define POSIX_THREAD_THREADS_MAX            64
williamr@2
    33
#define PTHREAD_THREADS_MAX                 1024
williamr@2
    34
#define POSIX_SEM_NSEMS_MAX                 256
williamr@2
    35
#define SEM_NSEMS_MAX                       1024
williamr@2
    36
#define _POSIX_SEM_VALUE_MAX                32767
williamr@2
    37
#define SEM_VALUE_MAX                       INT_MAX
williamr@2
    38
williamr@2
    39
/* internal use*/
williamr@2
    40
typedef enum 
williamr@2
    41
{
williamr@2
    42
    _ENeedsNormalInit =-3,
williamr@2
    43
    _ENeedsRecursiveInit,
williamr@2
    44
    _ENeedsErrorCheckInit,
williamr@2
    45
    _EInitialized =1,
williamr@2
    46
    _EDestroyed,
williamr@2
    47
    _EInvalid,
williamr@2
    48
}_handle_state;
williamr@2
    49
williamr@2
    50
enum _LockStatus
williamr@2
    51
{
williamr@2
    52
    _ELockNotCreated,
williamr@2
    53
    _ELockCreating,
williamr@2
    54
    _ELockCreated,
williamr@2
    55
};
williamr@2
    56
williamr@2
    57
enum _OnceStatus
williamr@2
    58
{
williamr@2
    59
    _ENotDone,
williamr@2
    60
    _EDoing,
williamr@2
    61
    _EDone,
williamr@2
    62
};
williamr@2
    63
williamr@2
    64
typedef int pthread_once_t;
williamr@2
    65
williamr@2
    66
struct _pthread_mutex_t;
williamr@2
    67
typedef struct 
williamr@2
    68
{
williamr@2
    69
    _handle_state  iState;
williamr@2
    70
    struct _pthread_mutex_t* iPtr;
williamr@2
    71
    int   iReentry;
williamr@2
    72
}pthread_mutex_t;
williamr@2
    73
williamr@2
    74
typedef struct 
williamr@2
    75
{
williamr@2
    76
    _handle_state iState;
williamr@2
    77
    int iSharedType;
williamr@2
    78
    int iMutexType;
williamr@2
    79
}pthread_mutexattr_t;
williamr@2
    80
williamr@2
    81
williamr@2
    82
struct _CondNode;
williamr@2
    83
struct _CondQueue
williamr@2
    84
{
williamr@2
    85
  struct _CondNode*       iHead;
williamr@2
    86
  struct _CondNode*       iTail;
williamr@2
    87
  pthread_mutex_t iMutex;
williamr@2
    88
};
williamr@2
    89
williamr@2
    90
typedef struct 
williamr@2
    91
{
williamr@2
    92
  _handle_state    iState;
williamr@2
    93
  struct _CondQueue       iQueue;
williamr@2
    94
}pthread_cond_t;
williamr@2
    95
williamr@2
    96
typedef struct _pthread_condattr_t*   pthread_condattr_t;
williamr@2
    97
williamr@2
    98
#define PTHREAD_ONCE_INIT _ENotDone
williamr@2
    99
williamr@2
   100
#define PTHREAD_MUTEX_INITIALIZER { _ENeedsNormalInit, NULL,0 }
williamr@2
   101
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP { _ENeedsRecursiveInit, NULL, 0 }
williamr@2
   102
#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP { _ENeedsErrorCheckInit, NULL,0 }
williamr@2
   103
williamr@2
   104
#define PTHREAD_COND_INITIALIZER { _ENeedsNormalInit, NULL,NULL }
williamr@2
   105
williamr@2
   106
enum 
williamr@2
   107
{ 
williamr@2
   108
    PTHREAD_CREATE_JOINABLE = 0,  /* Default */ 
williamr@2
   109
    PTHREAD_CREATE_DETACHED = 1
williamr@2
   110
};
williamr@2
   111
williamr@2
   112
enum 
williamr@2
   113
{ 
williamr@2
   114
    PTHREAD_SCOPE_SYSTEM  = 1  /* Default */
williamr@2
   115
};
williamr@2
   116
williamr@2
   117
enum 
williamr@2
   118
{  
williamr@2
   119
    PTHREAD_CANCEL_ASYNCHRONOUS = 0,  
williamr@2
   120
    PTHREAD_CANCEL_DEFERRED = 1  /* Default */
williamr@2
   121
};
williamr@2
   122
williamr@2
   123
enum 
williamr@2
   124
{  
williamr@2
   125
    PTHREAD_PROCESS_PRIVATE = 0,   
williamr@2
   126
};
williamr@2
   127
williamr@2
   128
enum
williamr@2
   129
{
williamr@2
   130
  PTHREAD_MUTEX_NORMAL,
williamr@2
   131
  PTHREAD_MUTEX_RECURSIVE,
williamr@2
   132
  PTHREAD_MUTEX_ERRORCHECK,
williamr@2
   133
  PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
williamr@2
   134
};
williamr@2
   135
williamr@2
   136
williamr@2
   137
williamr@2
   138
#ifdef __cplusplus
williamr@2
   139
extern "C"
williamr@2
   140
{
williamr@2
   141
#endif    /* __cplusplus */
williamr@2
   142
williamr@2
   143
typedef void * (*thread_begin_routine)(void *);
williamr@2
   144
/*
williamr@2
   145
This function creates a thread, with attributes specified by attrib,
williamr@2
   146
within a process. If attrib is NULL, then default attributes will be used.
williamr@2
   147
On successful completion, pthread_create() will store the ID of the 
williamr@2
   148
created thread in the location referenced by threadhdl.
williamr@2
   149
*/ 
williamr@2
   150
IMPORT_C extern int pthread_create(pthread_t *threadhdl, pthread_attr_t *attrib, 
williamr@2
   151
                   thread_begin_routine begin_routine , void * param);  
williamr@2
   152
/*
williamr@2
   153
This function return the handle to current thread.
williamr@2
   154
*/                    
williamr@2
   155
IMPORT_C extern pthread_t pthread_self ();
williamr@2
   156
williamr@2
   157
/*
williamr@2
   158
Compare two thread handles
williamr@2
   159
*/
williamr@2
   160
IMPORT_C extern int pthread_equal(pthread_t t1,pthread_t t2);
williamr@2
   161
/*
williamr@2
   162
Waiting for thread termination
williamr@2
   163
*/
williamr@2
   164
IMPORT_C extern int pthread_join(pthread_t thHandle, void **retValPtr);
williamr@2
   165
/*
williamr@2
   166
detach from thread 
williamr@2
   167
*/
williamr@2
   168
IMPORT_C extern int pthread_detach(pthread_t thrHandle);
williamr@2
   169
/*
williamr@2
   170
exit current thread
williamr@2
   171
*/
williamr@2
   172
IMPORT_C extern void pthread_exit(void *retValPtr);
williamr@2
   173
/*
williamr@2
   174
Initialise the thread attributes
williamr@2
   175
*/
williamr@2
   176
IMPORT_C int pthread_attr_init(pthread_attr_t *attrib);
williamr@2
   177
/*
williamr@2
   178
Destroy the thread attributes
williamr@2
   179
*/
williamr@2
   180
IMPORT_C int pthread_attr_destroy(pthread_attr_t *attrib);
williamr@2
   181
/*
williamr@2
   182
Get the detach_state of the current thread
williamr@2
   183
*/
williamr@2
   184
IMPORT_C int pthread_attr_getdetachstate(const pthread_attr_t *attrib,
williamr@2
   185
                                         int *detState);
williamr@2
   186
/*
williamr@2
   187
Set the detach_state of the current thread
williamr@2
   188
*/                                         
williamr@2
   189
IMPORT_C int pthread_attr_setdetachstate(pthread_attr_t *attrib, 
williamr@2
   190
                                         int detState);                                         
williamr@2
   191
/*
williamr@2
   192
Get the stack size of the current thread
williamr@2
   193
*/
williamr@2
   194
IMPORT_C int pthread_attr_getstacksize(const pthread_attr_t *attrib,
williamr@2
   195
                                       size_t *stkSize);
williamr@2
   196
/*
williamr@2
   197
Set the stack size of the current thread
williamr@2
   198
*/                                       
williamr@2
   199
IMPORT_C int pthread_attr_setstacksize(pthread_attr_t *attrib, 
williamr@2
   200
                                       size_t stkSize);                                       
williamr@2
   201
williamr@2
   202
/*
williamr@2
   203
This function ensures that a piece of initialization code is executed at most once. 
williamr@2
   204
The once_control argument must point to a static  variable statically initialized to PTHREAD_ONCE_INIT
williamr@2
   205
williamr@2
   206
*/
williamr@2
   207
typedef void (*thread_init_routine) (void);
williamr@2
   208
IMPORT_C extern int pthread_once (pthread_once_t * once_control, 
williamr@2
   209
                                  thread_init_routine init_routine);
williamr@2
   210
williamr@2
   211
/*
williamr@2
   212
extern int pthread_key_create (pthread_key_t * key, void (*destructor) (void *));
williamr@2
   213
extern int pthread_key_delete (pthread_key_t key);
williamr@2
   214
extern int pthread_setspecific (pthread_key_t key, const void *value);
williamr@2
   215
extern void* pthread_getspecific (pthread_key_t key);
williamr@2
   216
*/
williamr@2
   217
williamr@2
   218
/*
williamr@2
   219
This function initializes the mutex attribute object attr and fills it with default values for the attributes.
williamr@2
   220
*/
williamr@2
   221
IMPORT_C extern int pthread_mutexattr_init (pthread_mutexattr_t * attr);
williamr@2
   222
williamr@2
   223
/*
williamr@2
   224
This function destroys the mutex attribute object attr and marks it as a destroyed object.
williamr@2
   225
*/
williamr@2
   226
IMPORT_C extern int pthread_mutexattr_destroy (pthread_mutexattr_t * attr);
williamr@2
   227
williamr@2
   228
/*
williamr@2
   229
This function retrieves the current value of the process shared attribute in 
williamr@2
   230
attr and stores it in the location pointed to by pshared.
williamr@2
   231
*/
williamr@2
   232
IMPORT_C extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t* attr, int* pshared);
williamr@2
   233
williamr@2
   234
/*
williamr@2
   235
This function sets the current value of the process shared attribute in attr to the value specifed in the  
williamr@2
   236
pshared variable.
williamr@2
   237
*/
williamr@2
   238
IMPORT_C extern int pthread_mutexattr_setpshared (pthread_mutexattr_t * attr, int pshared);
williamr@2
   239
williamr@2
   240
/*
williamr@2
   241
This function retrieves the current value of the mutex kind attribute in attr and 
williamr@2
   242
stores it in the location pointed to by type.
williamr@2
   243
*/
williamr@2
   244
IMPORT_C extern int pthread_mutexattr_gettype (pthread_mutexattr_t * attr, int *type);
williamr@2
   245
williamr@2
   246
williamr@2
   247
/*
williamr@2
   248
This function sets the current value of the mutex kind attribute in attr to the value specifed in the  type variable.
williamr@2
   249
*/
williamr@2
   250
IMPORT_C extern int pthread_mutexattr_settype (pthread_mutexattr_t * attr, int type);
williamr@2
   251
williamr@2
   252
/*
williamr@2
   253
This function initializes the mutex object pointed to by mutex according to the mutex attributes specified in attr. 
williamr@2
   254
If attr is NULL, default attributes are used instead.
williamr@2
   255
williamr@2
   256
*/
williamr@2
   257
IMPORT_C extern int pthread_mutex_init (pthread_mutex_t * mutex, const pthread_mutexattr_t * attr);
williamr@2
   258
williamr@2
   259
/*
williamr@2
   260
This function destroys the mutex object.  The mutex must be unlocked on entrance.
williamr@2
   261
This implementation requires even statically initialized mutexes to be explicitly destroyed.
williamr@2
   262
*/
williamr@2
   263
IMPORT_C extern int pthread_mutex_destroy (pthread_mutex_t * mutex);
williamr@2
   264
williamr@2
   265
/*
williamr@2
   266
This function locks the given mutex. If the mutex is currently
williamr@2
   267
unlocked, it becomes locked and owned by the calling thread, and
williamr@2
   268
this function  returns immediately. If the mutex is already
williamr@2
   269
locked by another thread, this function suspends the calling
williamr@2
   270
thread until the mutex is unlocked. 
williamr@2
   271
williamr@2
   272
If the mutex is already locked by the calling thread, the behavior of
williamr@2
   273
this function depends on the kind of the mutex. If the mutex is
williamr@2
   274
of the  PTHREAD_MUTEX_NORMAL or PTHREAD_MUTEX_DEFAULT kind, the calling thread is suspended until the mutex
williamr@2
   275
is unlocked, thus effectively causing the calling thread to
williamr@2
   276
deadlock. If the mutex is of the PTHREAD_MUTEX_ERRORCHECK kind,
williamr@2
   277
this function returns immediately with the error code EDEADLK.
williamr@2
   278
If the mutex is of the PTHREAD_MUTEX_RECURSIVE kind, this function
williamr@2
   279
succeeds and returns immediately, recording the number of times the
williamr@2
   280
calling thread has locked the mutex. An equal number of
williamr@2
   281
pthread_mutex_unlock operations must be performed before the mutex
williamr@2
   282
returns to the unlocked state.
williamr@2
   283
*/
williamr@2
   284
IMPORT_C extern int pthread_mutex_lock (pthread_mutex_t * mutex);
williamr@2
   285
williamr@2
   286
williamr@2
   287
/*
williamr@2
   288
This function behaves identically to pthread_mutex_lock, except that if it cannot acquire the lock before 
williamr@2
   289
the abs_timeout time, the call returns with the error code ETIMEDOUT. 
williamr@2
   290
*/
williamr@2
   291
IMPORT_C extern int pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime);
williamr@2
   292
williamr@2
   293
/*
williamr@2
   294
This function behaves identically to pthread_mutex_lock, except that it does not 
williamr@2
   295
block the calling thread if the mutex is already locked by another thread (or by 
williamr@2
   296
the calling thread in the case of a PTHREAD_MUTEX_RECURSIVE mutex). Instead, pthread_mutex_trylock 
williamr@2
   297
returns immediately with the error code EAGAIN.
williamr@2
   298
*/
williamr@2
   299
IMPORT_C extern int pthread_mutex_trylock (pthread_mutex_t * mutex);
williamr@2
   300
williamr@2
   301
/*
williamr@2
   302
This function unlocks the given mutex. The mutex is assumed
williamr@2
   303
to be locked and owned by the calling thread on entrance to
williamr@2
   304
this function. If the mutex is of the PTHREAD_MUTEX_NORMAL or PTHREAD_MUTEX_DEFAULT kind,
williamr@2
   305
this function always returns it to the unlocked state. If it
williamr@2
   306
is of the PTHREAD_MUTEX_RECURSIVE kind, it decrements the locking count of the
williamr@2
   307
mutex (number of pthread_mutex_lock operations performed on it by
williamr@2
   308
the calling thread), and only when this count reaches zero is the
williamr@2
   309
mutex actually unlocked.
williamr@2
   310
williamr@2
   311
On PTHREAD_MUTEX_ERRORCHECK mutexes, this function actually checks
williamr@2
   312
at run-time that the mutex is locked on entrance, and that it was
williamr@2
   313
locked by the same thread that is now calling pthread_mutex_unlock.
williamr@2
   314
If these conditions are not met, an error code is returned and the
williamr@2
   315
mutex remains unchanged.  
williamr@2
   316
*/
williamr@2
   317
IMPORT_C extern int pthread_mutex_unlock (pthread_mutex_t * mutex);
williamr@2
   318
williamr@2
   319
/*
williamr@2
   320
This function initializes the condition attribute object attr and 
williamr@2
   321
sets it with default values for the attributes. 
williamr@2
   322
*/
williamr@2
   323
IMPORT_C extern int pthread_condattr_init (pthread_condattr_t * /*attr*/);
williamr@2
   324
williamr@2
   325
/*
williamr@2
   326
This function destroys the condtion variable attribute object.
williamr@2
   327
*/
williamr@2
   328
IMPORT_C extern int pthread_condattr_destroy (pthread_condattr_t * attr);
williamr@2
   329
/*
williamr@2
   330
extern int pthread_condattr_getpshared (const pthread_condattr_t * attr, int *pshared);
williamr@2
   331
extern int pthread_condattr_setpshared (pthread_condattr_t * attr, int pshared);
williamr@2
   332
*/
williamr@2
   333
williamr@2
   334
/*
williamr@2
   335
This function initializes the condition variable object pointed to by cond 
williamr@2
   336
using the attributes of the attr variable. If attr is NULL, default attributes 
williamr@2
   337
are used instead.
williamr@2
   338
*/
williamr@2
   339
IMPORT_C extern int pthread_cond_init (pthread_cond_t * cond, const pthread_condattr_t * /*attr*/);
williamr@2
   340
williamr@2
   341
/*
williamr@2
   342
This function destroys the condition variable  object. 
williamr@2
   343
*/
williamr@2
   344
IMPORT_C extern int pthread_cond_destroy (pthread_cond_t * cond);
williamr@2
   345
williamr@2
   346
/*
williamr@2
   347
This function atomically unlocks mutex and waits on cond, 
williamr@2
   348
as pthread_cond_wait does, but it also bounds the duration 
williamr@2
   349
of the wait. If cond has not been signalled within the amount 
williamr@2
   350
of time specified by abstime, the mutex mutex is re-acquired and 
williamr@2
   351
pthread_cond_timedwait returns the error ETIMEDOUT. The abstime 
williamr@2
   352
parameter specifies an absolute time, with the same origin as time(2) and gettimeofday(2). 
williamr@2
   353
*/
williamr@2
   354
IMPORT_C extern int pthread_cond_timedwait (pthread_cond_t * cond,pthread_mutex_t * mutex,const struct timespec *abstime);
williamr@2
   355
williamr@2
   356
/*
williamr@2
   357
This function atomically unlocks the mutex (as per pthread_unlock_mutex) 
williamr@2
   358
and waits for the condition variable cond to be signalled. The thread 
williamr@2
   359
execution is suspended and does not consume any CPU time until the condition 
williamr@2
   360
variable is signalled. The mutex must be locked by the calling thread on entrance 
williamr@2
   361
to pthread_cond_wait. Before returning to the calling thread, pthread_cond_wait 
williamr@2
   362
re-acquires mutex (as per pthread_lock_mutex).
williamr@2
   363
*/
williamr@2
   364
IMPORT_C extern int pthread_cond_wait (pthread_cond_t * cond, pthread_mutex_t * mutex);
williamr@2
   365
williamr@2
   366
/*
williamr@2
   367
This function restarts one of the threads that are waiting on the condition 
williamr@2
   368
variable cond. If no threads are waiting on cond, nothing happens. If several 
williamr@2
   369
threads are waiting on cond, exactly one is restarted. 
williamr@2
   370
williamr@2
   371
*/
williamr@2
   372
IMPORT_C extern int pthread_cond_signal (pthread_cond_t * cond);
williamr@2
   373
williamr@2
   374
/*
williamr@2
   375
This function restarts all the threads that are waiting on the 
williamr@2
   376
condition variable cond. Nothing happens if no threads are waiting on cond. 
williamr@2
   377
*/
williamr@2
   378
IMPORT_C extern int pthread_cond_broadcast (pthread_cond_t * cond);
williamr@2
   379
williamr@2
   380
williamr@2
   381
typedef void (*destructor_routine)(void *);
williamr@2
   382
/*
williamr@2
   383
Thread-specific data key creation
williamr@2
   384
*/
williamr@2
   385
IMPORT_C int pthread_key_create(pthread_key_t *key, destructor_routine dest);
williamr@2
   386
williamr@2
   387
/*
williamr@2
   388
Thread-specific data key deletion
williamr@2
   389
*/
williamr@2
   390
IMPORT_C int pthread_key_delete(pthread_key_t key);
williamr@2
   391
williamr@2
   392
/*
williamr@2
   393
Setting Thread-specific data 
williamr@2
   394
*/
williamr@2
   395
IMPORT_C int pthread_setspecific(pthread_key_t key, const void *val);
williamr@2
   396
williamr@2
   397
/*
williamr@2
   398
Getting Thread-specific data 
williamr@2
   399
*/
williamr@2
   400
IMPORT_C void* pthread_getspecific(pthread_key_t key);
williamr@2
   401
williamr@2
   402
/*
williamr@2
   403
Getting contention scope 
williamr@2
   404
*/
williamr@2
   405
IMPORT_C int pthread_attr_getscope(const pthread_attr_t *attrib,
williamr@2
   406
                                   int* scope);
williamr@2
   407
/*
williamr@2
   408
Setting contention scope 
williamr@2
   409
*/
williamr@2
   410
IMPORT_C int pthread_attr_setscope(pthread_attr_t *attrib,int conscope); 
williamr@2
   411
williamr@2
   412
/*
williamr@2
   413
Setting scheduling policy
williamr@2
   414
*/
williamr@2
   415
IMPORT_C int pthread_attr_setschedpolicy(pthread_attr_t *attrib, 
williamr@2
   416
                                         int policy);                                  
williamr@2
   417
williamr@2
   418
/*
williamr@2
   419
Getting scheduling policy of the thread
williamr@2
   420
*/
williamr@2
   421
IMPORT_C int pthread_attr_getschedpolicy(const pthread_attr_t *attrib,
williamr@2
   422
                                         int *policy);
williamr@2
   423
williamr@2
   424
/*
williamr@2
   425
Getting scheduling param of the thread
williamr@2
   426
*/
williamr@2
   427
IMPORT_C int pthread_attr_getschedparam(const pthread_attr_t *attrib,
williamr@2
   428
                                        struct sched_param *param);
williamr@2
   429
williamr@2
   430
/*
williamr@2
   431
Setting scheduling param
williamr@2
   432
*/                                        
williamr@2
   433
IMPORT_C int pthread_attr_setschedparam(pthread_attr_t *attrib, 
williamr@2
   434
                                        const struct sched_param *param);
williamr@2
   435
williamr@2
   436
/*
williamr@2
   437
Getting dynamic scheduling param of the thread
williamr@2
   438
*/                                        
williamr@2
   439
IMPORT_C int pthread_getschedparam(pthread_t thr, int *policy,
williamr@2
   440
                                   struct sched_param *param);
williamr@2
   441
williamr@2
   442
/*
williamr@2
   443
Dynamically Setting scheduling params
williamr@2
   444
*/                                   
williamr@2
   445
IMPORT_C int pthread_setschedparam(pthread_t th, int policy, 
williamr@2
   446
                                   const struct sched_param *param);
williamr@2
   447
                                         
williamr@2
   448
#ifdef __cplusplus
williamr@2
   449
}                               /* End of  "C" */
williamr@2
   450
#endif                          /* __cplusplus */
williamr@2
   451
williamr@2
   452
williamr@2
   453
#endif /* PTHREAD_H */
williamr@2
   454