Relicense Sortix to the ISC license.
I hereby relicense all my work on Sortix under the ISC license as below.
All Sortix contributions by other people are already under this license,
are not substantial enough to be copyrightable, or have been removed.
All imported code from other projects is compatible with this license.
All GPL licensed code from other projects had previously been removed.
Copyright 2011-2016 Jonas 'Sortie' Termansen and contributors.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2016-03-02 17:38:16 -05:00
|
|
|
/*
|
2021-02-06 15:23:43 -05:00
|
|
|
* Copyright (c) 2013, 2014, 2021 Jonas 'Sortie' Termansen.
|
Relicense Sortix to the ISC license.
I hereby relicense all my work on Sortix under the ISC license as below.
All Sortix contributions by other people are already under this license,
are not substantial enough to be copyrightable, or have been removed.
All imported code from other projects is compatible with this license.
All GPL licensed code from other projects had previously been removed.
Copyright 2011-2016 Jonas 'Sortie' Termansen and contributors.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2016-03-02 17:38:16 -05:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*
|
|
|
|
* pthread.h
|
|
|
|
* Thread API.
|
|
|
|
*/
|
2013-08-31 07:15:53 -04:00
|
|
|
|
2022-07-07 19:09:15 -04:00
|
|
|
#ifndef _INCLUDE_PTHREAD_H
|
|
|
|
#define _INCLUDE_PTHREAD_H
|
2013-08-31 07:15:53 -04:00
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
#include <sys/__/types.h>
|
|
|
|
|
|
|
|
#include <sched.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
2016-02-28 07:03:24 -05:00
|
|
|
#if defined(__is_sortix_libc)
|
2013-08-31 07:15:53 -04:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#endif
|
|
|
|
|
2016-02-28 07:03:24 -05:00
|
|
|
#if defined(__is_sortix_libc)
|
2013-08-31 07:15:53 -04:00
|
|
|
#include <sortix/uthread.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <__/pthread.h>
|
|
|
|
|
2015-05-13 12:11:02 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2013-08-31 07:15:53 -04:00
|
|
|
|
|
|
|
/* TODO: #define PTHREAD_BARRIER_SERIAL_THREAD */
|
|
|
|
/* TODO: #define PTHREAD_CANCEL_ASYNCHRONOUS */
|
|
|
|
/* TODO: #define PTHREAD_CANCEL_ENABLE */
|
|
|
|
/* TODO: #define PTHREAD_CANCEL_DEFERRED */
|
|
|
|
/* TODO: #define PTHREAD_CANCEL_DISABLE */
|
|
|
|
/* TODO: #define PTHREAD_CANCELED */
|
2014-01-09 17:48:43 -05:00
|
|
|
#define PTHREAD_CREATE_DETACHED 1
|
|
|
|
#define PTHREAD_CREATE_JOINABLE 0
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: #define PTHREAD_EXPLICIT_SCHED */
|
|
|
|
/* TODO: #define PTHREAD_INHERIT_SCHED */
|
2013-08-31 07:18:20 -04:00
|
|
|
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: #define PTHREAD_MUTEX_ERRORCHECK */
|
2013-08-31 07:18:20 -04:00
|
|
|
#define PTHREAD_MUTEX_NORMAL 0
|
|
|
|
#define PTHREAD_MUTEX_RECURSIVE 1
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: #define PTHREAD_MUTEX_ROBUST */
|
|
|
|
/* TODO: #define PTHREAD_MUTEX_STALLED */
|
|
|
|
/* TODO: #define PTHREAD_PRIO_INHERIT */
|
|
|
|
/* TODO: #define PTHREAD_PRIO_NONE */
|
|
|
|
/* TODO: #define PTHREAD_PRIO_PROTECT */
|
|
|
|
/* TODO: #define PTHREAD_PROCESS_SHARED */
|
|
|
|
/* TODO: #define PTHREAD_PROCESS_PRIVATE */
|
|
|
|
/* TODO: #define PTHREAD_SCOPE_PROCESS */
|
|
|
|
/* TODO: #define PTHREAD_SCOPE_SYSTEM */
|
|
|
|
|
|
|
|
#ifndef __pthread_attr_t_defined
|
|
|
|
#define __pthread_attr_t_defined
|
|
|
|
typedef __pthread_attr_t pthread_attr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_barrier_t_defined
|
|
|
|
#define __pthread_barrier_t_defined
|
|
|
|
typedef __pthread_barrier_t pthread_barrier_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_barrierattr_t_defined
|
|
|
|
#define __pthread_barrierattr_t_defined
|
|
|
|
typedef __pthread_barrierattr_t pthread_barrierattr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_cond_t_defined
|
|
|
|
#define __pthread_cond_t_defined
|
|
|
|
typedef __pthread_cond_t pthread_cond_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_condattr_t_defined
|
|
|
|
#define __pthread_condattr_t_defined
|
|
|
|
typedef __pthread_condattr_t pthread_condattr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_key_t_defined
|
|
|
|
#define __pthread_key_t_defined
|
|
|
|
typedef __pthread_key_t pthread_key_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_mutex_t_defined
|
|
|
|
#define __pthread_mutex_t_defined
|
|
|
|
typedef __pthread_mutex_t pthread_mutex_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_mutexattr_t_defined
|
|
|
|
#define __pthread_mutexattr_t_defined
|
|
|
|
typedef __pthread_mutexattr_t pthread_mutexattr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_once_t_defined
|
|
|
|
#define __pthread_once_t_defined
|
|
|
|
typedef __pthread_once_t pthread_once_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_rwlock_t_defined
|
|
|
|
#define __pthread_rwlock_t_defined
|
|
|
|
typedef __pthread_rwlock_t pthread_rwlock_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_rwlockattr_t_defined
|
|
|
|
#define __pthread_rwlockattr_t_defined
|
|
|
|
typedef __pthread_rwlockattr_t pthread_rwlockattr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_spinlock_t_defined
|
|
|
|
#define __pthread_spinlock_t_defined
|
|
|
|
typedef __pthread_spinlock_t pthread_spinlock_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __pthread_t_defined
|
|
|
|
#define __pthread_t_defined
|
|
|
|
typedef __pthread_t pthread_t;
|
|
|
|
#endif
|
|
|
|
|
2016-02-28 07:03:24 -05:00
|
|
|
#if defined(__is_sortix_libc)
|
2013-08-31 07:15:53 -04:00
|
|
|
struct pthread
|
|
|
|
{
|
|
|
|
struct uthread uthread;
|
2014-01-09 17:20:45 -05:00
|
|
|
pthread_mutex_t join_lock;
|
2014-01-10 09:43:16 -05:00
|
|
|
pthread_mutex_t detach_lock;
|
2013-08-31 12:04:36 -04:00
|
|
|
void* (*entry_function)(void*);
|
|
|
|
void* entry_cookie;
|
2014-01-09 17:20:45 -05:00
|
|
|
void* exit_result;
|
2014-01-13 16:33:00 -05:00
|
|
|
void** keys;
|
|
|
|
size_t keys_length;
|
2014-01-09 17:48:43 -05:00
|
|
|
int detach_state;
|
2013-08-31 07:15:53 -04:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2016-02-28 07:03:24 -05:00
|
|
|
#if defined(__is_sortix_libc)
|
2013-09-03 09:17:13 -04:00
|
|
|
struct pthread_cond_elem
|
|
|
|
{
|
|
|
|
struct pthread_cond_elem* next;
|
2021-02-06 15:23:43 -05:00
|
|
|
struct pthread_cond_elem* prev;
|
|
|
|
int woken;
|
2013-09-03 09:17:13 -04:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2021-02-06 15:23:43 -05:00
|
|
|
#define PTHREAD_COND_INITIALIZER { PTHREAD_NORMAL_MUTEX_INITIALIZER_NP, NULL, \
|
|
|
|
NULL, CLOCK_REALTIME }
|
2013-08-31 07:18:20 -04:00
|
|
|
#define PTHREAD_MUTEX_INITIALIZER { 0, PTHREAD_MUTEX_DEFAULT, 0, 0 }
|
2013-09-03 15:47:19 -04:00
|
|
|
#define PTHREAD_RWLOCK_INITIALIZER { PTHREAD_COND_INITIALIZER, \
|
|
|
|
PTHREAD_COND_INITIALIZER, \
|
|
|
|
PTHREAD_MUTEX_INITIALIZER, 0, 0, 0, 0 }
|
2013-08-31 07:15:53 -04:00
|
|
|
|
2013-08-31 07:18:20 -04:00
|
|
|
#define PTHREAD_NORMAL_MUTEX_INITIALIZER_NP { 0, PTHREAD_MUTEX_NORMAL, 0, 0 }
|
2021-02-06 15:23:43 -05:00
|
|
|
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP { 0, PTHREAD_MUTEX_RECURSIVE, \
|
|
|
|
0, 0 }
|
2013-08-31 07:18:20 -04:00
|
|
|
|
2014-01-10 10:01:28 -05:00
|
|
|
#define PTHREAD_ONCE_INIT { PTHREAD_NORMAL_MUTEX_INITIALIZER_NP, 0 }
|
|
|
|
|
2016-02-28 07:03:24 -05:00
|
|
|
#if defined(__is_sortix_libc)
|
2014-01-13 16:00:41 -05:00
|
|
|
|
|
|
|
struct pthread_key
|
|
|
|
{
|
|
|
|
void (*destructor)(void*);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern pthread_mutex_t __pthread_keys_lock;
|
|
|
|
extern struct pthread_key* __pthread_keys;
|
|
|
|
extern size_t __pthread_keys_used;
|
|
|
|
extern size_t __pthread_keys_length;
|
2013-08-31 12:04:36 -04:00
|
|
|
|
|
|
|
struct pthread* pthread_allocate_tls(void);
|
2014-01-13 16:00:41 -05:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_atfork */
|
2013-09-03 09:06:16 -04:00
|
|
|
int pthread_attr_destroy(pthread_attr_t*);
|
2014-01-09 17:48:43 -05:00
|
|
|
int pthread_attr_getdetachstate(const pthread_attr_t*, int*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_attr_getguardsize */
|
|
|
|
/* TODO: pthread_attr_getinheritsched */
|
|
|
|
/* TODO: pthread_attr_getschedparam */
|
|
|
|
/* TODO: pthread_attr_getschedpolicy */
|
|
|
|
/* TODO: pthread_attr_getscope */
|
|
|
|
/* TODO: pthread_attr_getstack */
|
2013-09-03 09:08:38 -04:00
|
|
|
int pthread_attr_getstacksize(const pthread_attr_t* __restrict,
|
|
|
|
size_t* __restrict);
|
2013-09-03 09:06:16 -04:00
|
|
|
int pthread_attr_init(pthread_attr_t*);
|
2014-01-09 17:48:43 -05:00
|
|
|
int pthread_attr_setdetachstate(pthread_attr_t*, int);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_attr_setguardsize */
|
|
|
|
/* TODO: pthread_attr_setinheritsched */
|
|
|
|
/* TODO: pthread_attr_setschedparam */
|
|
|
|
/* TODO: pthread_attr_setschedpolicy */
|
|
|
|
/* TODO: pthread_attr_setscope */
|
|
|
|
/* TODO: pthread_attr_setstack */
|
2013-09-03 09:08:38 -04:00
|
|
|
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_barrier_destroy */
|
|
|
|
/* TODO: pthread_barrier_init */
|
|
|
|
/* TODO: pthread_barrier_wait */
|
|
|
|
/* TODO: pthread_barrierattr_destroy */
|
|
|
|
/* TODO: pthread_barrierattr_getpshared */
|
|
|
|
/* TODO: pthread_barrierattr_init */
|
|
|
|
/* TODO: pthread_barrierattr_setpshared */
|
|
|
|
/* TODO: pthread_cancel */
|
|
|
|
/* TODO: pthread_cleanup_pop */
|
|
|
|
/* TODO: pthread_cleanup_push */
|
2013-09-03 09:17:13 -04:00
|
|
|
int pthread_cond_broadcast(pthread_cond_t*);
|
2013-09-03 09:36:33 -04:00
|
|
|
int pthread_cond_destroy(pthread_cond_t*);
|
|
|
|
int pthread_cond_init(pthread_cond_t* __restrict,
|
|
|
|
const pthread_condattr_t* __restrict);
|
2013-09-03 09:17:13 -04:00
|
|
|
int pthread_cond_signal(pthread_cond_t*);
|
2013-09-16 18:07:29 -04:00
|
|
|
int pthread_cond_timedwait(pthread_cond_t* __restrict,
|
|
|
|
pthread_mutex_t* __restrict,
|
|
|
|
const struct timespec* __restrict);
|
2013-09-03 09:17:13 -04:00
|
|
|
int pthread_cond_wait(pthread_cond_t* __restrict, pthread_mutex_t* __restrict);
|
2013-09-03 09:51:15 -04:00
|
|
|
int pthread_condattr_destroy(pthread_condattr_t*);
|
2014-07-07 09:13:17 -04:00
|
|
|
int pthread_condattr_getclock(const pthread_condattr_t* __restrict,
|
|
|
|
clockid_t* __restrict);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_condattr_getpshared */
|
2013-09-03 09:51:15 -04:00
|
|
|
int pthread_condattr_init(pthread_condattr_t*);
|
2014-07-07 09:13:17 -04:00
|
|
|
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_condattr_setpshared */
|
2013-08-31 12:04:36 -04:00
|
|
|
int pthread_create(pthread_t* __restrict,
|
|
|
|
const pthread_attr_t* __restrict,
|
|
|
|
void* (*)(void*),
|
|
|
|
void* __restrict);
|
2014-01-10 09:43:16 -05:00
|
|
|
int pthread_detach(pthread_t);
|
2013-09-15 11:24:20 -04:00
|
|
|
int pthread_equal(pthread_t, pthread_t);
|
2013-08-31 13:46:42 -04:00
|
|
|
__attribute__((__noreturn__))
|
|
|
|
void pthread_exit(void*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_getconcurrency */
|
|
|
|
/* TODO: pthread_getcpuclockid */
|
|
|
|
/* TODO: pthread_getschedparam */
|
2014-01-13 16:33:00 -05:00
|
|
|
void* pthread_getspecific(pthread_key_t);
|
2014-01-09 17:20:45 -05:00
|
|
|
int pthread_join(pthread_t, void**);
|
2014-01-13 16:00:41 -05:00
|
|
|
int pthread_key_create(pthread_key_t*, void (*)(void*));
|
|
|
|
int pthread_key_delete(pthread_key_t);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_mutex_consistent */
|
2013-08-31 09:06:56 -04:00
|
|
|
int pthread_mutex_destroy(pthread_mutex_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_mutex_getprioceiling */
|
2013-08-31 09:06:56 -04:00
|
|
|
int pthread_mutex_init(pthread_mutex_t* __restrict,
|
|
|
|
const pthread_mutexattr_t* __restrict);
|
2013-08-31 07:18:20 -04:00
|
|
|
int pthread_mutex_lock(pthread_mutex_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_mutex_setprioceiling */
|
|
|
|
/* TODO: pthread_mutex_timedlock */
|
2013-08-31 08:55:16 -04:00
|
|
|
int pthread_mutex_trylock(pthread_mutex_t*);
|
2013-08-31 07:18:20 -04:00
|
|
|
int pthread_mutex_unlock(pthread_mutex_t*);
|
2013-09-03 08:51:44 -04:00
|
|
|
int pthread_mutexattr_destroy(pthread_mutexattr_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_mutexattr_getprioceiling */
|
|
|
|
/* TODO: pthread_mutexattr_getprotocol */
|
|
|
|
/* TODO: pthread_mutexattr_getpshared */
|
|
|
|
/* TODO: pthread_mutexattr_getrobust */
|
2014-01-08 13:04:16 -05:00
|
|
|
int pthread_mutexattr_gettype(pthread_mutexattr_t* __restrict, int* __restrict);
|
2013-09-03 08:51:44 -04:00
|
|
|
int pthread_mutexattr_init(pthread_mutexattr_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_mutexattr_setprioceiling */
|
|
|
|
/* TODO: pthread_mutexattr_setprotocol */
|
|
|
|
/* TODO: pthread_mutexattr_setpshared */
|
|
|
|
/* TODO: pthread_mutexattr_setrobust */
|
2014-01-08 13:04:16 -05:00
|
|
|
int pthread_mutexattr_settype(pthread_mutexattr_t*, int);
|
2014-01-10 10:01:28 -05:00
|
|
|
int pthread_once(pthread_once_t*, void (*)(void));
|
2013-09-03 15:56:28 -04:00
|
|
|
int pthread_rwlock_destroy(pthread_rwlock_t*);
|
|
|
|
int pthread_rwlock_init(pthread_rwlock_t* __restrict,
|
|
|
|
const pthread_rwlockattr_t* __restrict);
|
2013-09-03 15:47:19 -04:00
|
|
|
int pthread_rwlock_rdlock(pthread_rwlock_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_rwlock_timedrdlock */
|
|
|
|
/* TODO: pthread_rwlock_timedwrlock */
|
2013-09-03 16:10:28 -04:00
|
|
|
int pthread_rwlock_tryrdlock(pthread_rwlock_t*);
|
|
|
|
int pthread_rwlock_trywrlock(pthread_rwlock_t*);
|
2013-09-03 15:47:19 -04:00
|
|
|
int pthread_rwlock_unlock(pthread_rwlock_t*);
|
|
|
|
int pthread_rwlock_wrlock(pthread_rwlock_t*);
|
2013-09-03 17:33:07 -04:00
|
|
|
int pthread_rwlockattr_destroy(pthread_rwlockattr_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_rwlockattr_getpshared */
|
2013-09-03 17:33:07 -04:00
|
|
|
int pthread_rwlockattr_init(pthread_rwlockattr_t*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_rwlockattr_setpshared */
|
2013-09-15 11:20:28 -04:00
|
|
|
pthread_t pthread_self(void);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_setcancelstate */
|
|
|
|
/* TODO: pthread_setcanceltype */
|
|
|
|
/* TODO: pthread_setconcurrency */
|
|
|
|
/* TODO: pthread_setschedparam */
|
|
|
|
/* TODO: pthread_setschedprio */
|
2014-01-13 16:33:00 -05:00
|
|
|
int pthread_setspecific(pthread_key_t, const void*);
|
2013-08-31 07:15:53 -04:00
|
|
|
/* TODO: pthread_spin_destroy */
|
|
|
|
/* TODO: pthread_spin_init */
|
|
|
|
/* TODO: pthread_spin_lock */
|
|
|
|
/* TODO: pthread_spin_trylock */
|
|
|
|
/* TODO: pthread_spin_unlock */
|
|
|
|
/* TODO: pthread_testcancel */
|
|
|
|
|
2015-05-13 12:11:02 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
2013-08-31 07:15:53 -04:00
|
|
|
|
|
|
|
#endif
|