|
Packit |
6c4009 |
/* Declaration of common pthread types for all architectures. Hurd version.
|
|
Packit |
6c4009 |
Copyright (C) 2000-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#if !defined _BITS_TYPES_H && !defined _PTHREAD_H
|
|
Packit |
6c4009 |
# error "Never include <bits/pthreadtypes.h> directly; use <sys/types.h> instead."
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _BITS_PTHREADTYPES_H
|
|
Packit |
6c4009 |
#define _BITS_PTHREADTYPES_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/thread-shared-types.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <features.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__BEGIN_DECLS
|
|
Packit |
6c4009 |
#include <bits/pthread.h>
|
|
Packit |
6c4009 |
typedef __pthread_t pthread_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Possible values for the process shared attribute. */
|
|
Packit |
6c4009 |
enum __pthread_process_shared
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_PROCESS_PRIVATE = 0,
|
|
Packit |
6c4009 |
__PTHREAD_PROCESS_SHARED
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Possible values for the inheritsched attribute. */
|
|
Packit |
6c4009 |
enum __pthread_inheritsched
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_EXPLICIT_SCHED = 0,
|
|
Packit |
6c4009 |
__PTHREAD_INHERIT_SCHED
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Possible values for the `contentionscope' attribute. */
|
|
Packit |
6c4009 |
enum __pthread_contentionscope
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_SCOPE_SYSTEM = 0,
|
|
Packit |
6c4009 |
__PTHREAD_SCOPE_PROCESS
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Possible values for the `detachstate' attribute. */
|
|
Packit |
6c4009 |
enum __pthread_detachstate
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_CREATE_JOINABLE = 0,
|
|
Packit |
6c4009 |
__PTHREAD_CREATE_DETACHED
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/struct___pthread_attr.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_attr pthread_attr_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
enum __pthread_mutex_protocol
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_PRIO_NONE = 0,
|
|
Packit |
6c4009 |
__PTHREAD_PRIO_INHERIT,
|
|
Packit |
6c4009 |
__PTHREAD_PRIO_PROTECT
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
enum __pthread_mutex_type
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_MUTEX_TIMED,
|
|
Packit |
6c4009 |
__PTHREAD_MUTEX_ERRORCHECK,
|
|
Packit |
6c4009 |
__PTHREAD_MUTEX_RECURSIVE
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
enum __pthread_mutex_robustness
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
__PTHREAD_MUTEX_STALLED,
|
|
Packit |
6c4009 |
__PTHREAD_MUTEX_ROBUST = 0x100
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/struct___pthread_mutexattr.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_mutexattr pthread_mutexattr_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/struct___pthread_mutex.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_mutex pthread_mutex_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/struct___pthread_condattr.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_condattr pthread_condattr_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/struct___pthread_cond.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_cond pthread_cond_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifdef __USE_XOPEN2K
|
|
Packit |
6c4009 |
# include <bits/types/__pthread_spinlock_t.h>
|
|
Packit |
6c4009 |
typedef __pthread_spinlock_t pthread_spinlock_t;
|
|
Packit |
6c4009 |
#endif /* XPG6. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# include <bits/types/struct___pthread_rwlockattr.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_rwlockattr pthread_rwlockattr_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# include <bits/types/struct___pthread_rwlock.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_rwlock pthread_rwlock_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* __USE_UNIX98 || __USE_XOPEN2K */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifdef __USE_XOPEN2K
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# include <bits/types/struct___pthread_barrierattr.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_barrierattr pthread_barrierattr_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# include <bits/types/struct___pthread_barrier.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_barrier pthread_barrier_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* __USE_XOPEN2K */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/__pthread_key.h>
|
|
Packit |
6c4009 |
typedef __pthread_key pthread_key_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/types/struct___pthread_once.h>
|
|
Packit |
6c4009 |
typedef struct __pthread_once pthread_once_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__END_DECLS
|
|
Packit |
6c4009 |
#endif /* bits/pthreadtypes.h */
|