__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* ISO C11 Standard: 7.26 - Thread support library <threads.h>.
Copyright (C) 2018-2024 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
<https://www.gnu.org/licenses/>. */
#ifndef _THREADS_H
#define _THREADS_H 1
#include <features.h>
#include <time.h>
__BEGIN_DECLS
#include <bits/thread-shared-types.h>
#include <bits/types/struct_timespec.h>
#if (!defined __STDC_VERSION__ \
|| __STDC_VERSION__ <= 201710L \
|| !__GNUC_PREREQ (13, 0)) && !defined __cplusplus
# define thread_local _Thread_local
#endif
#define TSS_DTOR_ITERATIONS 4
typedef __tss_t tss_t;
typedef void (*tss_dtor_t) (void*);
typedef __thrd_t 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 __once_flag once_flag;
#define ONCE_FLAG_INIT __ONCE_FLAG_INIT
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 successful, __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. */
#ifndef __USE_TIME_BITS64
extern int thrd_sleep (const struct timespec *__time_point,
struct timespec *__remaining);
#else
# ifdef __REDIRECT
extern int __REDIRECT (thrd_sleep, (const struct timespec *__time_point,
struct timespec *__remaining),
__thrd_sleep64);
# else
# define thrd_sleep __thrd_sleep64
# endif
#endif
/* 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. */
#ifndef __USE_TIME_BITS64
extern int mtx_timedlock (mtx_t *__restrict __mutex,
const struct timespec *__restrict __time_point);
#else
# ifdef __REDIRECT
extern int __REDIRECT (mtx_timedlock, (mtx_t *__restrict __mutex,
const struct timespec *__restrict
__time_point),
__mtx_timedlock64);
# else
# define mtx_timedlock __mtx_timedlock64
# endif
#endif
/* 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. */
#ifndef __USE_TIME_BITS64
extern int cnd_timedwait (cnd_t *__restrict __cond,
mtx_t *__restrict __mutex,
const struct timespec *__restrict __time_point);
#else
# ifdef __REDIRECT
extern int __REDIRECT (cnd_timedwait, (cnd_t *__restrict __cond,
mtx_t *__restrict __mutex,
const struct timespec *__restrict
__time_point),
__cnd_timedwait64);
# else
# define cnd_timedwait __cnd_timedwait64
# endif
#endif
/* 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 */
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| X11 | Folder | 0755 |
|
|
| arpa | Folder | 0755 |
|
|
| asm-generic | Folder | 0755 |
|
|
| drm | Folder | 0755 |
|
|
| finclude | Folder | 0755 |
|
|
| iproute2 | Folder | 0755 |
|
|
| linux | Folder | 0755 |
|
|
| misc | Folder | 0755 |
|
|
| mtd | Folder | 0755 |
|
|
| net | Folder | 0755 |
|
|
| netash | Folder | 0755 |
|
|
| netatalk | Folder | 0755 |
|
|
| netax25 | Folder | 0755 |
|
|
| neteconet | Folder | 0755 |
|
|
| netinet | Folder | 0755 |
|
|
| netipx | Folder | 0755 |
|
|
| netiucv | Folder | 0755 |
|
|
| netpacket | Folder | 0755 |
|
|
| netrom | Folder | 0755 |
|
|
| netrose | Folder | 0755 |
|
|
| nfs | Folder | 0755 |
|
|
| php | Folder | 0755 |
|
|
| protocols | Folder | 0755 |
|
|
| rdma | Folder | 0755 |
|
|
| regulator | Folder | 0755 |
|
|
| rpc | Folder | 0755 |
|
|
| rpcsvc | Folder | 0755 |
|
|
| scsi | Folder | 0755 |
|
|
| sound | Folder | 0755 |
|
|
| video | Folder | 0755 |
|
|
| x86_64-linux-gnu | Folder | 0755 |
|
|
| xen | Folder | 0755 |
|
|
| xfs | Folder | 0755 |
|
|
| aio.h | File | 7.56 KB | 0644 |
|
| aliases.h | File | 1.98 KB | 0644 |
|
| alloca.h | File | 1.17 KB | 0644 |
|
| ar.h | File | 1.69 KB | 0644 |
|
| argp.h | File | 24.95 KB | 0644 |
|
| argz.h | File | 5.91 KB | 0644 |
|
| assert.h | File | 4.97 KB | 0644 |
|
| byteswap.h | File | 1.42 KB | 0644 |
|
| complex.h | File | 7.95 KB | 0644 |
|
| cpio.h | File | 2.21 KB | 0644 |
|
| crypt.h | File | 10.87 KB | 0644 |
|
| ctype.h | File | 10.71 KB | 0644 |
|
| dirent.h | File | 12.32 KB | 0644 |
|
| dlfcn.h | File | 8.38 KB | 0644 |
|
| elf.h | File | 190.33 KB | 0644 |
|
| endian.h | File | 2.25 KB | 0644 |
|
| envz.h | File | 2.8 KB | 0644 |
|
| err.h | File | 2.33 KB | 0644 |
|
| errno.h | File | 1.64 KB | 0644 |
|
| error.h | File | 2.37 KB | 0644 |
|
| execinfo.h | File | 1.49 KB | 0644 |
|
| fcntl.h | File | 11.17 KB | 0644 |
|
| features-time64.h | File | 1.38 KB | 0644 |
|
| features.h | File | 18.09 KB | 0644 |
|
| fenv.h | File | 5.65 KB | 0644 |
|
| fmtmsg.h | File | 3.16 KB | 0644 |
|
| fnmatch.h | File | 2.24 KB | 0644 |
|
| fstab.h | File | 3.04 KB | 0644 |
|
| fts.h | File | 9.35 KB | 0644 |
|
| ftw.h | File | 6.19 KB | 0644 |
|
| gawkapi.h | File | 40.72 KB | 0644 |
|
| gconv.h | File | 4.11 KB | 0644 |
|
| getopt.h | File | 1.43 KB | 0644 |
|
| glob.h | File | 7.13 KB | 0644 |
|
| gnu-versions.h | File | 2.29 KB | 0644 |
|
| grp.h | File | 6.69 KB | 0644 |
|
| gshadow.h | File | 4.58 KB | 0644 |
|
| iconv.h | File | 1.87 KB | 0644 |
|
| ifaddrs.h | File | 2.77 KB | 0644 |
|
| inttypes.h | File | 11.04 KB | 0644 |
|
| langinfo.h | File | 17.43 KB | 0644 |
|
| lastlog.h | File | 126 B | 0644 |
|
| libgen.h | File | 1.35 KB | 0644 |
|
| libintl.h | File | 4.47 KB | 0644 |
|
| limits.h | File | 5.57 KB | 0644 |
|
| link.h | File | 7.62 KB | 0644 |
|
| locale.h | File | 7.5 KB | 0644 |
|
| malloc.h | File | 5.84 KB | 0644 |
|
| math.h | File | 49.75 KB | 0644 |
|
| mcheck.h | File | 2.38 KB | 0644 |
|
| memory.h | File | 956 B | 0644 |
|
| mntent.h | File | 3.28 KB | 0644 |
|
| monetary.h | File | 1.92 KB | 0644 |
|
| mqueue.h | File | 4.5 KB | 0644 |
|
| netdb.h | File | 27.79 KB | 0644 |
|
| nl_types.h | File | 1.71 KB | 0644 |
|
| nss.h | File | 14.07 KB | 0644 |
|
| obstack.h | File | 20.81 KB | 0644 |
|
| paths.h | File | 2.91 KB | 0644 |
|
| poll.h | File | 22 B | 0644 |
|
| printf.h | File | 6.71 KB | 0644 |
|
| proc_service.h | File | 3.4 KB | 0644 |
|
| pthread.h | File | 47.25 KB | 0644 |
|
| pty.h | File | 1.53 KB | 0644 |
|
| pwd.h | File | 6.17 KB | 0644 |
|
| re_comp.h | File | 963 B | 0644 |
|
| regex.h | File | 25.3 KB | 0644 |
|
| regexp.h | File | 1.35 KB | 0644 |
|
| resolv.h | File | 12.02 KB | 0644 |
|
| sched.h | File | 4.92 KB | 0644 |
|
| search.h | File | 5.32 KB | 0644 |
|
| semaphore.h | File | 3.38 KB | 0644 |
|
| setjmp.h | File | 3.12 KB | 0644 |
|
| sgtty.h | File | 1.31 KB | 0644 |
|
| shadow.h | File | 5.5 KB | 0644 |
|
| signal.h | File | 12.73 KB | 0644 |
|
| spawn.h | File | 8.19 KB | 0644 |
|
| stab.h | File | 264 B | 0644 |
|
| stdbit.h | File | 26.27 KB | 0644 |
|
| stdc-predef.h | File | 2.4 KB | 0644 |
|
| stdint.h | File | 7.96 KB | 0644 |
|
| stdio.h | File | 33.84 KB | 0644 |
|
| stdio_ext.h | File | 2.73 KB | 0644 |
|
| stdlib.h | File | 40.07 KB | 0644 |
|
| string.h | File | 19.5 KB | 0644 |
|
| strings.h | File | 4.64 KB | 0644 |
|
| sudo_plugin.h | File | 11.68 KB | 0644 |
|
| syscall.h | File | 25 B | 0644 |
|
| sysexits.h | File | 5.11 KB | 0644 |
|
| syslog.h | File | 24 B | 0644 |
|
| tar.h | File | 3.66 KB | 0644 |
|
| termio.h | File | 214 B | 0644 |
|
| termios.h | File | 3.51 KB | 0644 |
|
| tgmath.h | File | 46.51 KB | 0644 |
|
| thread_db.h | File | 15.65 KB | 0644 |
|
| threads.h | File | 7.62 KB | 0644 |
|
| time.h | File | 14.77 KB | 0644 |
|
| ttyent.h | File | 2.44 KB | 0644 |
|
| uchar.h | File | 3.04 KB | 0644 |
|
| ucontext.h | File | 1.99 KB | 0644 |
|
| ulimit.h | File | 1.55 KB | 0644 |
|
| unistd.h | File | 44 KB | 0644 |
|
| utime.h | File | 1.86 KB | 0644 |
|
| utmp.h | File | 3.15 KB | 0644 |
|
| utmpx.h | File | 4 KB | 0644 |
|
| values.h | File | 1.91 KB | 0644 |
|
| wait.h | File | 22 B | 0644 |
|
| wchar.h | File | 38.19 KB | 0644 |
|
| wctype.h | File | 5.42 KB | 0644 |
|
| wordexp.h | File | 2.44 KB | 0644 |
|