$18 GRAYBYTE WORDPRESS FILE MANAGER $28

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 88.222.243.13 | ADMIN IP 216.73.216.21
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/include/

HOME
Current File : /usr/include//threads.h
/* ISO C11 Standard: 7.26 - Thread support library  <threads.h>.
   Copyright (C) 2018 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <http://www.gnu.org/licenses/>.  */

#ifndef _THREADS_H
#define _THREADS_H	1

#include <features.h>
#include <time.h>

__BEGIN_DECLS

#include <bits/pthreadtypes-arch.h>
#include <bits/types/struct_timespec.h>

#ifndef __cplusplus
# define thread_local _Thread_local
#endif

#define TSS_DTOR_ITERATIONS 4
typedef unsigned int tss_t;
typedef void (*tss_dtor_t) (void*);

typedef unsigned long int thrd_t;
typedef int (*thrd_start_t) (void*);

/* Exit and error codes.  */
enum
{
  thrd_success  = 0,
  thrd_busy     = 1,
  thrd_error    = 2,
  thrd_nomem    = 3,
  thrd_timedout = 4
};

/* Mutex types.  */
enum
{
  mtx_plain     = 0,
  mtx_recursive = 1,
  mtx_timed     = 2
};

typedef struct
{
  int __data __ONCE_ALIGNMENT;
} once_flag;
#define ONCE_FLAG_INIT { 0 }

typedef union
{
  char __size[__SIZEOF_PTHREAD_MUTEX_T];
  long int __align __LOCK_ALIGNMENT;
} mtx_t;

typedef union
{
  char __size[__SIZEOF_PTHREAD_COND_T];
  __extension__ long long int __align __LOCK_ALIGNMENT;
} cnd_t;

/* Threads functions.  */

/* Create a new thread executing the function __FUNC.  Arguments for __FUNC
   are passed through __ARG.  If succesful, __THR is set to new thread
   identifier.  */
extern int thrd_create (thrd_t *__thr, thrd_start_t __func, void *__arg);

/* Check if __LHS and __RHS point to the same thread.  */
extern int thrd_equal (thrd_t __lhs, thrd_t __rhs);

/* Return current thread identifier.  */
extern thrd_t thrd_current (void);

/* Block current thread execution for at least the time pointed by
   __TIME_POINT.  The current thread may resume if receives a signal.  In
   that case, if __REMAINING is not NULL, the remaining time is stored in
   the object pointed by it.  */
extern int thrd_sleep (const struct timespec *__time_point,
		       struct timespec *__remaining);

/* Terminate current thread execution, cleaning up any thread local
   storage and freeing resources.  Returns the value specified in __RES.  */
extern void thrd_exit (int __res) __attribute__ ((__noreturn__));

/* Detach the thread identified by __THR from the current environment
   (it does not allow join or wait for it).  */
extern int thrd_detach (thrd_t __thr);

/* Block current thread until execution of __THR is complete.  In case that
   __RES is not NULL, will store the return value of __THR when exiting.  */
extern int thrd_join (thrd_t __thr, int *__res);

/* Stop current thread execution and call the scheduler to decide which
   thread should execute next.  The current thread may be selected by the
   scheduler to keep running.  */
extern void thrd_yield (void);

#ifdef __USE_EXTERN_INLINES
/* Optimizations.  */
__extern_inline int
thrd_equal (thrd_t __thread1, thrd_t __thread2)
{
  return __thread1 == __thread2;
}
#endif


/* Mutex functions.  */

/* Creates a new mutex object with type __TYPE.  If successful the new
   object is pointed by __MUTEX.  */
extern int mtx_init (mtx_t *__mutex, int __type);

/* Block the current thread until the mutex pointed to by __MUTEX is
   unlocked.  In that case current thread will not be blocked.  */
extern int mtx_lock (mtx_t *__mutex);

/* Block the current thread until the mutex pointed by __MUTEX is unlocked
   or time pointed by __TIME_POINT is reached.  In case the mutex is unlock,
   the current thread will not be blocked.  */
extern int mtx_timedlock (mtx_t *__restrict __mutex,
			  const struct timespec *__restrict __time_point);

/* Try to lock the mutex pointed by __MUTEX without blocking.  If the mutex
   is free the current threads takes control of it, otherwise it returns
   immediately.  */
extern int mtx_trylock (mtx_t *__mutex);

/* Unlock the mutex pointed by __MUTEX.  It may potentially awake other
   threads waiting on this mutex.  */
extern int mtx_unlock (mtx_t *__mutex);

/* Destroy the mutex object pointed by __MUTEX.  */
extern void mtx_destroy (mtx_t *__mutex);


/* Call function __FUNC exactly once, even if invoked from several threads.
   All calls must be made with the same __FLAGS object.  */
extern void call_once (once_flag *__flag, void (*__func)(void));


/* Condition variable functions.  */

/* Initialize new condition variable pointed by __COND.  */
extern int cnd_init (cnd_t *__cond);

/* Unblock one thread that currently waits on condition variable pointed
   by __COND.  */
extern int cnd_signal (cnd_t *__cond);

/* Unblock all threads currently waiting on condition variable pointed by
   __COND.  */
extern int cnd_broadcast (cnd_t *__cond);

/* Block current thread on the condition variable pointed by __COND.  */
extern int cnd_wait (cnd_t *__cond, mtx_t *__mutex);

/* Block current thread on the condition variable until condition variable
   pointed by __COND is signaled or time pointed by __TIME_POINT is
   reached.  */
extern int cnd_timedwait (cnd_t *__restrict __cond,
			  mtx_t *__restrict __mutex,
			  const struct timespec *__restrict __time_point);

/* Destroy condition variable pointed by __cond and free all of its
   resources.  */
extern void cnd_destroy (cnd_t *__COND);


/* Thread specific storage functions.  */

/* Create new thread-specific storage key and stores it in the object pointed
   by __TSS_ID.  If __DESTRUCTOR is not NULL, the function will be called when
   the thread terminates.  */
extern int tss_create (tss_t *__tss_id, tss_dtor_t __destructor);

/* Return the value held in thread-specific storage for the current thread
   identified by __TSS_ID.  */
extern void *tss_get (tss_t __tss_id);

/* Sets the value of the thread-specific storage identified by __TSS_ID for
   the current thread to __VAL.  */
extern int tss_set (tss_t __tss_id, void *__val);

/* Destroys the thread-specific storage identified by __TSS_ID.  The
   destructor is not called until thrd_exit is called.  */
extern void tss_delete (tss_t __tss_id);

__END_DECLS

#endif /* _THREADS_H */

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jan 2024 2.16 PM
root / root
0755
arpa
--
20 Aug 2025 9.09 AM
root / root
0755
asm
--
28 Feb 2025 12.40 AM
root / root
0755
asm-generic
--
28 Feb 2025 12.40 AM
root / root
0755
bits
--
20 Aug 2025 9.09 AM
root / root
0755
bsock
--
25 Jan 2024 5.03 PM
root / root
0755
c++
--
21 Oct 2025 6.56 AM
root / root
0755
criu
--
25 Jan 2024 5.23 PM
root / root
0755
curl
--
21 Oct 2025 6.55 AM
root / root
0755
drm
--
28 Feb 2025 12.40 AM
root / root
0755
et
--
21 Oct 2025 6.55 AM
root / root
0755
finclude
--
20 Aug 2025 9.09 AM
root / root
0755
gdb
--
20 Aug 2025 9.09 AM
root / root
0755
gnu
--
20 Aug 2025 9.09 AM
root / root
0755
gssapi
--
21 Oct 2025 6.55 AM
root / root
0755
gssrpc
--
21 Oct 2025 6.55 AM
root / root
0755
kadm5
--
21 Oct 2025 6.55 AM
root / root
0755
krb5
--
21 Oct 2025 6.55 AM
root / root
0755
libxml2
--
17 Feb 2025 2.33 AM
root / root
0755
linux
--
28 Feb 2025 12.40 AM
root / root
0755
lzma
--
25 Jan 2024 5.18 PM
root / root
0755
misc
--
28 Feb 2025 12.40 AM
root / root
0755
mtd
--
28 Feb 2025 12.40 AM
root / root
0755
mysql
--
4 Jul 2024 10.38 PM
root / root
0755
net
--
20 Aug 2025 9.09 AM
root / root
0755
netash
--
20 Aug 2025 9.09 AM
root / root
0755
netatalk
--
20 Aug 2025 9.09 AM
root / root
0755
netax25
--
20 Aug 2025 9.09 AM
root / root
0755
neteconet
--
20 Aug 2025 9.09 AM
root / root
0755
netinet
--
20 Aug 2025 9.09 AM
root / root
0755
netipx
--
20 Aug 2025 9.09 AM
root / root
0755
netiucv
--
20 Aug 2025 9.09 AM
root / root
0755
netpacket
--
20 Aug 2025 9.09 AM
root / root
0755
netrom
--
20 Aug 2025 9.09 AM
root / root
0755
netrose
--
20 Aug 2025 9.09 AM
root / root
0755
nfs
--
20 Aug 2025 9.09 AM
root / root
0755
openssl
--
21 Oct 2025 6.55 AM
root / root
0755
perf
--
28 Feb 2025 12.40 AM
root / root
0755
protocols
--
20 Aug 2025 9.09 AM
root / root
0755
python2.7
--
28 Feb 2025 12.49 AM
root / root
0755
python3.6m
--
2 Apr 2025 8.03 AM
root / root
0755
python3.8
--
21 Oct 2025 6.55 AM
root / root
0755
rdma
--
28 Feb 2025 12.40 AM
root / root
0755
rpc
--
20 Aug 2025 9.09 AM
root / root
0755
scsi
--
20 Aug 2025 9.09 AM
root / root
0755
selinux
--
21 Oct 2025 6.55 AM
root / root
0755
sepol
--
21 Oct 2025 6.55 AM
root / root
0755
sound
--
28 Feb 2025 12.40 AM
root / root
0755
sys
--
20 Aug 2025 9.09 AM
root / root
0755
video
--
28 Feb 2025 12.40 AM
root / root
0755
xen
--
28 Feb 2025 12.40 AM
root / root
0755
GeoIP.h
17.417 KB
17 Jan 2018 7.23 PM
root / root
0644
GeoIPCity.h
2.244 KB
17 Jan 2018 7.23 PM
root / root
0644
a.out.h
4.248 KB
5 Aug 2025 2.01 PM
root / root
0644
aio.h
7.281 KB
5 Aug 2025 2.01 PM
root / root
0644
aliases.h
1.983 KB
5 Aug 2025 2.01 PM
root / root
0644
alloca.h
1.175 KB
5 Aug 2025 2.01 PM
root / root
0644
ar.h
1.689 KB
5 Aug 2025 2.01 PM
root / root
0644
argp.h
24.818 KB
5 Aug 2025 2.01 PM
root / root
0644
argz.h
5.908 KB
5 Aug 2025 2.01 PM
root / root
0644
assert.h
4.454 KB
5 Aug 2025 2.01 PM
root / root
0644
byteswap.h
1.371 KB
5 Aug 2025 2.01 PM
root / root
0644
com_err.h
2.068 KB
21 Mar 2020 4.24 AM
root / root
0644
complex.h
6.995 KB
5 Aug 2025 2.01 PM
root / root
0644
cpio.h
2.214 KB
5 Aug 2025 2.01 PM
root / root
0644
cpuidle.h
0.824 KB
10 Feb 2025 11.10 PM
root / root
0644
crypt.h
8.904 KB
9 Oct 2021 4.04 AM
root / root
0644
ctype.h
10.706 KB
5 Aug 2025 2.01 PM
root / root
0644
dirent.h
12.191 KB
5 Aug 2025 2.01 PM
root / root
0644
dlfcn.h
7.068 KB
5 Aug 2025 2.01 PM
root / root
0644
elf.h
170.73 KB
5 Aug 2025 2.01 PM
root / root
0644
endian.h
3.114 KB
5 Aug 2025 2.01 PM
root / root
0644
envz.h
2.799 KB
5 Aug 2025 2.01 PM
root / root
0644
err.h
2.157 KB
5 Aug 2025 2.01 PM
root / root
0644
errno.h
1.639 KB
5 Aug 2025 2.01 PM
root / root
0644
error.h
1.991 KB
5 Aug 2025 2.01 PM
root / root
0644
execinfo.h
1.486 KB
5 Aug 2025 2.01 PM
root / root
0644
fcntl.h
10.701 KB
5 Aug 2025 2.01 PM
root / root
0644
features.h
15.686 KB
5 Aug 2025 2.00 PM
root / root
0644
fenv.h
5.72 KB
5 Aug 2025 2.01 PM
root / root
0644
fmtmsg.h
3.163 KB
5 Aug 2025 2.01 PM
root / root
0644
fnmatch.h
2.241 KB
5 Aug 2025 2.01 PM
root / root
0644
fpu_control.h
3.499 KB
5 Aug 2025 2.01 PM
root / root
0644
fstab.h
3.038 KB
5 Aug 2025 2.01 PM
root / root
0644
fts.h
8.176 KB
5 Aug 2025 2.01 PM
root / root
0644
ftw.h
5.128 KB
5 Aug 2025 2.01 PM
root / root
0644
gconv.h
4.307 KB
5 Aug 2025 2.00 PM
root / root
0644
getopt.h
1.434 KB
5 Aug 2025 2.01 PM
root / root
0644
glob.h
6.459 KB
5 Aug 2025 2.01 PM
root / root
0644
gnu-versions.h
2.287 KB
5 Aug 2025 2.00 PM
root / root
0644
gnumake.h
2.844 KB
18 Apr 2022 4.38 PM
root / root
0644
grp.h
6.529 KB
5 Aug 2025 2.01 PM
root / root
0644
gshadow.h
4.422 KB
5 Aug 2025 2.01 PM
root / root
0644
gssapi.h
0.177 KB
5 Nov 2024 2.15 AM
root / root
0644
iconv.h
1.813 KB
5 Aug 2025 2.00 PM
root / root
0644
ieee754.h
4.795 KB
5 Aug 2025 2.01 PM
root / root
0644
ifaddrs.h
2.773 KB
5 Aug 2025 2.01 PM
root / root
0644
inttypes.h
11.613 KB
5 Aug 2025 2.01 PM
root / root
0644
kdb.h
67.661 KB
5 Nov 2024 2.15 AM
root / root
0644
keyutils.h
7.518 KB
8 Oct 2021 1.50 PM
root / root
0644
krad.h
8.724 KB
5 Nov 2024 2.15 AM
root / root
0644
krb5.h
0.393 KB
5 Nov 2024 2.15 AM
root / root
0644
langinfo.h
17.43 KB
5 Aug 2025 2.00 PM
root / root
0644
lastlog.h
0.123 KB
5 Aug 2025 2.01 PM
root / root
0644
lauxlib.h
8.426 KB
9 Oct 2021 5.14 AM
root / root
0644
libgen.h
1.353 KB
5 Aug 2025 2.01 PM
root / root
0644
libintl.h
4.472 KB
5 Aug 2025 2.01 PM
root / root
0644
liblsapi-sha1.h
0.556 KB
2 Dec 2024 11.13 AM
root / root
0644
limits.h
5.285 KB
5 Aug 2025 2.00 PM
root / root
0644
link.h
7.049 KB
5 Aug 2025 2.01 PM
root / root
0644
locale.h
7.494 KB
5 Aug 2025 2.00 PM
root / root
0644
lsapidef.h
4.604 KB
2 Dec 2024 11.13 AM
root / root
0644
lscapi.h
24.154 KB
2 Dec 2024 11.13 AM
root / root
0644
lscapi_config.h
0.585 KB
2 Dec 2024 11.13 AM
root / root
0644
lua.h
14.485 KB
9 Oct 2021 5.14 AM
root / root
0644
lua.hpp
0.187 KB
9 Oct 2021 5.14 AM
root / root
0644
luaconf-x86_64.h
21.107 KB
9 Oct 2021 5.14 AM
root / root
0644
luaconf.h
1.616 KB
18 Aug 2021 1.25 PM
root / root
0644
lualib.h
1.271 KB
9 Oct 2021 5.14 AM
root / root
0644
lzma.h
9.587 KB
29 Apr 2018 3.10 PM
root / root
0644
malloc.h
5.959 KB
5 Aug 2025 2.01 PM
root / root
0644
math.h
52.068 KB
5 Aug 2025 2.01 PM
root / root
0644
mcheck.h
2.377 KB
5 Aug 2025 2.01 PM
root / root
0644
memory.h
0.933 KB
5 Aug 2025 2.01 PM
root / root
0644
mntent.h
3.279 KB
5 Aug 2025 2.01 PM
root / root
0644
monetary.h
1.761 KB
5 Aug 2025 2.01 PM
root / root
0644
mqueue.h
3.671 KB
5 Aug 2025 2.01 PM
root / root
0644
netdb.h
27.44 KB
5 Aug 2025 2.01 PM
root / root
0644
nl_types.h
1.711 KB
5 Aug 2025 2.01 PM
root / root
0644
nss.h
1.834 KB
5 Aug 2025 2.01 PM
root / root
0644
obstack.h
20.807 KB
5 Aug 2025 2.01 PM
root / root
0644
paths.h
2.907 KB
5 Aug 2025 2.01 PM
root / root
0644
pcre2.h
43.752 KB
2 Aug 2022 4.07 PM
root / root
0644
pcre2posix.h
5.668 KB
2 Aug 2022 4.07 PM
root / root
0644
poll.h
0.021 KB
5 Aug 2025 2.01 PM
root / root
0644
printf.h
6.641 KB
5 Aug 2025 2.01 PM
root / root
0644
proc_service.h
3.395 KB
5 Aug 2025 2.01 PM
root / root
0644
profile.h
11.869 KB
5 Nov 2024 2.15 AM
root / root
0644
pthread.h
40.302 KB
5 Aug 2025 2.01 PM
root / root
0644
pty.h
1.532 KB
5 Aug 2025 2.01 PM
root / root
0644
pwd.h
6.014 KB
5 Aug 2025 2.01 PM
root / root
0644
re_comp.h
0.939 KB
5 Aug 2025 2.01 PM
root / root
0644
regex.h
24.136 KB
5 Aug 2025 2.01 PM
root / root
0644
regexp.h
1.413 KB
5 Aug 2025 2.01 PM
root / root
0644
resolv.h
11.868 KB
5 Aug 2025 2.01 PM
root / root
0644
sched.h
4.621 KB
5 Aug 2025 2.01 PM
root / root
0644
search.h
5.101 KB
5 Aug 2025 2.01 PM
root / root
0644
semaphore.h
2.343 KB
5 Aug 2025 2.01 PM
root / root
0644
setjmp.h
3.583 KB
5 Aug 2025 2.01 PM
root / root
0644
sgtty.h
1.312 KB
5 Aug 2025 2.01 PM
root / root
0644
shadow.h
5.343 KB
5 Aug 2025 2.01 PM
root / root
0644
signal.h
11.956 KB
5 Aug 2025 2.01 PM
root / root
0644
spawn.h
6.533 KB
5 Aug 2025 2.01 PM
root / root
0644
stab.h
0.258 KB
5 Aug 2025 2.01 PM
root / root
0644
stdc-predef.h
2.235 KB
5 Aug 2025 2.00 PM
root / root
0644
stdint.h
8.271 KB
5 Aug 2025 2.01 PM
root / root
0644
stdio.h
29.461 KB
5 Aug 2025 2.01 PM
root / root
0644
stdio_ext.h
2.733 KB
5 Aug 2025 2.01 PM
root / root
0644
stdlib.h
34.817 KB
5 Aug 2025 2.01 PM
root / root
0644
string.h
17.175 KB
5 Aug 2025 2.01 PM
root / root
0644
strings.h
4.641 KB
5 Aug 2025 2.01 PM
root / root
0644
syscall.h
0.024 KB
5 Aug 2025 2.01 PM
root / root
0644
sysexits.h
5.109 KB
5 Aug 2025 2.01 PM
root / root
0644
syslog.h
0.023 KB
5 Aug 2025 2.01 PM
root / root
0644
tar.h
3.696 KB
5 Aug 2025 2.01 PM
root / root
0644
termio.h
0.209 KB
5 Aug 2025 2.01 PM
root / root
0644
termios.h
3.514 KB
5 Aug 2025 2.01 PM
root / root
0644
tgmath.h
30.751 KB
5 Aug 2025 2.01 PM
root / root
0644
thread_db.h
15.647 KB
5 Aug 2025 2.01 PM
root / root
0644
threads.h
6.499 KB
5 Aug 2025 2.01 PM
root / root
0644
time.h
10.117 KB
5 Aug 2025 2.01 PM
root / root
0644
ttyent.h
2.436 KB
5 Aug 2025 2.01 PM
root / root
0644
uchar.h
1.954 KB
5 Aug 2025 2.01 PM
root / root
0644
ucontext.h
1.988 KB
5 Aug 2025 2.01 PM
root / root
0644
ulimit.h
1.546 KB
5 Aug 2025 2.01 PM
root / root
0644
unistd.h
41.736 KB
5 Aug 2025 2.01 PM
root / root
0644
utime.h
1.466 KB
5 Aug 2025 2.01 PM
root / root
0644
utmp.h
3.146 KB
5 Aug 2025 2.01 PM
root / root
0644
utmpx.h
4.003 KB
5 Aug 2025 2.01 PM
root / root
0644
values.h
1.909 KB
5 Aug 2025 2.00 PM
root / root
0644
verto-module.h
6.484 KB
8 Oct 2022 7.49 AM
root / root
0644
verto.h
18.981 KB
8 Oct 2022 7.49 AM
root / root
0644
wait.h
0.021 KB
5 Aug 2025 2.01 PM
root / root
0644
wchar.h
30.382 KB
5 Aug 2025 2.01 PM
root / root
0644
wctype.h
5.418 KB
5 Aug 2025 2.01 PM
root / root
0644
wordexp.h
2.442 KB
5 Aug 2025 2.01 PM
root / root
0644
zconf.h
15.881 KB
11 Oct 2023 10.02 PM
root / root
0644
zlib.h
94.005 KB
11 Oct 2023 10.02 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF