golden hour
/usr/include
⬆️ Go Up
Upload
File/Folder
Size
Actions
FlexLexer.h
6.73 KB
Del
OK
GL
-
Del
OK
X11
-
Del
OK
a.out.h
4.25 KB
Del
OK
aio.h
7.56 KB
Del
OK
aliases.h
1.98 KB
Del
OK
alloca.h
1.17 KB
Del
OK
apache2
-
Del
OK
ar.h
1.69 KB
Del
OK
argp.h
24.95 KB
Del
OK
argz.h
5.91 KB
Del
OK
arpa
-
Del
OK
asm
-
Del
OK
asm-generic
-
Del
OK
assert.h
4.46 KB
Del
OK
autosprintf.h
2.36 KB
Del
OK
bind9
-
Del
OK
bits
-
Del
OK
blkid
-
Del
OK
brotli
-
Del
OK
bsock
-
Del
OK
byteswap.h
1.42 KB
Del
OK
bzlib.h
6.09 KB
Del
OK
c++
-
Del
OK
com_err.h
2.07 KB
Del
OK
complex.h
7.95 KB
Del
OK
cpio.h
2.21 KB
Del
OK
cpuidle.h
931 B
Del
OK
crypt.h
10.9 KB
Del
OK
ctype.h
10.71 KB
Del
OK
curses.h
96.82 KB
Del
OK
cursesapp.h
7.06 KB
Del
OK
cursesf.h
27.37 KB
Del
OK
cursesm.h
19.44 KB
Del
OK
cursesp.h
8.55 KB
Del
OK
cursesw.h
49.13 KB
Del
OK
cursslk.h
7.15 KB
Del
OK
db.h
120.22 KB
Del
OK
db_185.h
5.84 KB
Del
OK
dbm.h
1.37 KB
Del
OK
dirent.h
12.32 KB
Del
OK
dlfcn.h
7.52 KB
Del
OK
drm
-
Del
OK
e2p
-
Del
OK
elf.h
178.26 KB
Del
OK
endian.h
2.25 KB
Del
OK
entities.h
4.81 KB
Del
OK
envz.h
2.8 KB
Del
OK
err.h
2.29 KB
Del
OK
errno.h
1.64 KB
Del
OK
error.h
2.36 KB
Del
OK
et
-
Del
OK
eti.h
2.9 KB
Del
OK
etip.h
9.61 KB
Del
OK
evdns.h
1.97 KB
Del
OK
event.h
2.68 KB
Del
OK
event2
-
Del
OK
evhttp.h
1.99 KB
Del
OK
evrpc.h
1.97 KB
Del
OK
evutil.h
1.74 KB
Del
OK
execinfo.h
1.49 KB
Del
OK
expat.h
42.75 KB
Del
OK
expat_config.h
3.82 KB
Del
OK
expat_external.h
5.89 KB
Del
OK
ext2fs
-
Del
OK
fcntl.h
11.17 KB
Del
OK
features-time64.h
1.37 KB
Del
OK
features.h
17.69 KB
Del
OK
fenv.h
5.65 KB
Del
OK
ffi-x86_64.h
13.88 KB
Del
OK
ffi.h
556 B
Del
OK
ffitarget-x86_64.h
4.63 KB
Del
OK
ffitarget.h
616 B
Del
OK
finclude
-
Del
OK
fmtmsg.h
3.16 KB
Del
OK
fnmatch.h
2.24 KB
Del
OK
fontconfig
-
Del
OK
form.h
18.46 KB
Del
OK
fpu_control.h
3.5 KB
Del
OK
freetype2
-
Del
OK
fstab.h
3.04 KB
Del
OK
fstrm
-
Del
OK
fstrm.h
12.71 KB
Del
OK
fts.h
9.35 KB
Del
OK
ftw.h
6.19 KB
Del
OK
gconv.h
4.11 KB
Del
OK
gd.h
58.25 KB
Del
OK
gd_color_map.h
478 B
Del
OK
gd_errors.h
1.47 KB
Del
OK
gd_io.h
2.93 KB
Del
OK
gdbm
-
Del
OK
gdbm.h
11.9 KB
Del
OK
gdcache.h
2.92 KB
Del
OK
gdfontg.h
553 B
Del
OK
gdfontl.h
551 B
Del
OK
gdfontmb.h
519 B
Del
OK
gdfonts.h
515 B
Del
OK
gdfontt.h
546 B
Del
OK
gdfx.h
496 B
Del
OK
gdpp.h
50.73 KB
Del
OK
gelf.h
11.14 KB
Del
OK
getopt.h
1.43 KB
Del
OK
gettext-po.h
15.18 KB
Del
OK
gio-unix-2.0
-
Del
OK
glib-2.0
-
Del
OK
glob.h
7.13 KB
Del
OK
gnu
-
Del
OK
gnu-versions.h
2.29 KB
Del
OK
gnumake.h
2.84 KB
Del
OK
google
-
Del
OK
gpg-error.h
71.92 KB
Del
OK
gpgrt.h
71.92 KB
Del
OK
graphite2
-
Del
OK
grp.h
6.53 KB
Del
OK
gshadow.h
4.42 KB
Del
OK
gssapi
-
Del
OK
gssapi.h
181 B
Del
OK
gssrpc
-
Del
OK
harfbuzz
-
Del
OK
iconv.h
1.81 KB
Del
OK
idn-free.h
2.56 KB
Del
OK
idn-int.h
20 B
Del
OK
idna.h
3.89 KB
Del
OK
ieee754.h
4.8 KB
Del
OK
ifaddrs.h
2.77 KB
Del
OK
inttypes.h
8.14 KB
Del
OK
jconfig-64.h
1.98 KB
Del
OK
jconfig.h
246 B
Del
OK
jerror.h
15.35 KB
Del
OK
jmorecfg.h
13.98 KB
Del
OK
jpegint.h
15.25 KB
Del
OK
jpeglib.h
49.1 KB
Del
OK
json-c
-
Del
OK
kadm5
-
Del
OK
kdb.h
62.83 KB
Del
OK
keyutils.h
11.52 KB
Del
OK
krad.h
8.72 KB
Del
OK
krb5
-
Del
OK
krb5.h
402 B
Del
OK
langinfo.h
17.43 KB
Del
OK
lastlog.h
126 B
Del
OK
lber.h
15.12 KB
Del
OK
lber_types.h
1.43 KB
Del
OK
ldap.h
72.36 KB
Del
OK
ldap_cdefs.h
9.24 KB
Del
OK
ldap_features.h
1.55 KB
Del
OK
ldap_schema.h
9.23 KB
Del
OK
ldap_utf8.h
3.39 KB
Del
OK
ldif.h
4.68 KB
Del
OK
libaio.h
8.75 KB
Del
OK
libdb
-
Del
OK
libelf.h
19.84 KB
Del
OK
libexslt
-
Del
OK
libgen.h
1.35 KB
Del
OK
libintl.h
4.47 KB
Del
OK
liblsapi-sha1.h
569 B
Del
OK
libltdl
-
Del
OK
libmount
-
Del
OK
libpng16
-
Del
OK
libxml2
-
Del
OK
libxslt
-
Del
OK
limits.h
5.57 KB
Del
OK
link.h
7.05 KB
Del
OK
linux
-
Del
OK
lmdb.h
72.28 KB
Del
OK
locale.h
7.5 KB
Del
OK
lsapidef.h
4.6 KB
Del
OK
lscapi.h
24.21 KB
Del
OK
lscapi_config.h
599 B
Del
OK
ltdl.h
5.58 KB
Del
OK
lve
-
Del
OK
lzma
-
Del
OK
lzma.h
9.63 KB
Del
OK
malloc.h
5.77 KB
Del
OK
math.h
47.63 KB
Del
OK
maxminddb.h
8.34 KB
Del
OK
maxminddb_config-64.h
504 B
Del
OK
maxminddb_config.h
178 B
Del
OK
mcheck.h
2.38 KB
Del
OK
memory.h
956 B
Del
OK
menu.h
11.6 KB
Del
OK
misc
-
Del
OK
mntent.h
3.28 KB
Del
OK
monetary.h
1.92 KB
Del
OK
mqueue.h
4.5 KB
Del
OK
mtd
-
Del
OK
mysql
-
Del
OK
nc_tparm.h
4.67 KB
Del
OK
ncurses
-
Del
OK
ncurses.h
96.82 KB
Del
OK
ncurses_dll.h
3.95 KB
Del
OK
ncursesw
-
Del
OK
ndbm.h
2.39 KB
Del
OK
net
-
Del
OK
netash
-
Del
OK
netatalk
-
Del
OK
netax25
-
Del
OK
netdb.h
27.79 KB
Del
OK
neteconet
-
Del
OK
netinet
-
Del
OK
netipx
-
Del
OK
netiucv
-
Del
OK
netpacket
-
Del
OK
netrom
-
Del
OK
netrose
-
Del
OK
nfs
-
Del
OK
nl_types.h
1.71 KB
Del
OK
nlist.h
1.56 KB
Del
OK
nss.h
14.07 KB
Del
OK
obstack.h
20.81 KB
Del
OK
openldap.h
964 B
Del
OK
openssl
-
Del
OK
panel.h
4.41 KB
Del
OK
paths.h
2.91 KB
Del
OK
pcp
-
Del
OK
pcre.h
30.97 KB
Del
OK
pcre2.h
46.15 KB
Del
OK
pcre2posix.h
6.52 KB
Del
OK
pcre_scanner.h
6.45 KB
Del
OK
pcre_stringpiece.h
6.16 KB
Del
OK
pcrecpp.h
25.91 KB
Del
OK
pcrecpparg.h
6.62 KB
Del
OK
pcreposix.h
5.74 KB
Del
OK
png.h
139.51 KB
Del
OK
pngconf.h
22.31 KB
Del
OK
pnglibconf.h
7.43 KB
Del
OK
poll.h
22 B
Del
OK
powercap.h
1.62 KB
Del
OK
pr29.h
2.19 KB
Del
OK
printf.h
6.71 KB
Del
OK
proc_service.h
3.4 KB
Del
OK
profile.h
11.87 KB
Del
OK
protobuf-c
-
Del
OK
protocols
-
Del
OK
pthread.h
47.39 KB
Del
OK
pty.h
1.53 KB
Del
OK
punycode.h
9.3 KB
Del
OK
pwd.h
6.17 KB
Del
OK
python3.9
-
Del
OK
rdma
-
Del
OK
re_comp.h
963 B
Del
OK
readline
-
Del
OK
regex.h
25.3 KB
Del
OK
regexp.h
1.41 KB
Del
OK
resolv.h
12.1 KB
Del
OK
rpc
-
Del
OK
sasl
-
Del
OK
sched.h
4.92 KB
Del
OK
scsi
-
Del
OK
search.h
5.32 KB
Del
OK
security
-
Del
OK
selinux
-
Del
OK
semaphore.h
3.38 KB
Del
OK
sepol
-
Del
OK
setjmp.h
3.12 KB
Del
OK
sgtty.h
1.31 KB
Del
OK
shadow.h
5.34 KB
Del
OK
signal.h
12.73 KB
Del
OK
slapi-plugin.h
37.45 KB
Del
OK
sound
-
Del
OK
spawn.h
7.84 KB
Del
OK
stab.h
264 B
Del
OK
stdc-predef.h
2.24 KB
Del
OK
stdint.h
8.28 KB
Del
OK
stdio.h
30.67 KB
Del
OK
stdio_ext.h
2.73 KB
Del
OK
stdlib.h
35.46 KB
Del
OK
string.h
18.33 KB
Del
OK
stringprep.h
9.53 KB
Del
OK
strings.h
4.64 KB
Del
OK
sys
-
Del
OK
syscall.h
25 B
Del
OK
sysexits.h
5.11 KB
Del
OK
syslog.h
24 B
Del
OK
sysprof-4
-
Del
OK
tar.h
3.7 KB
Del
OK
term.h
40.95 KB
Del
OK
term_entry.h
8.9 KB
Del
OK
termcap.h
3.39 KB
Del
OK
termio.h
214 B
Del
OK
termios.h
3.51 KB
Del
OK
tgmath.h
39.24 KB
Del
OK
thread_db.h
15.65 KB
Del
OK
threads.h
7.51 KB
Del
OK
tic.h
14.48 KB
Del
OK
tiff.h
46.33 KB
Del
OK
tiffconf-64.h
3.19 KB
Del
OK
tiffconf.h
250 B
Del
OK
tiffio.h
24.13 KB
Del
OK
tiffio.hxx
1.62 KB
Del
OK
tiffvers.h
410 B
Del
OK
time.h
14.49 KB
Del
OK
tld.h
4.85 KB
Del
OK
ttyent.h
2.44 KB
Del
OK
uchar.h
1.96 KB
Del
OK
ucontext.h
1.99 KB
Del
OK
ulimit.h
1.55 KB
Del
OK
unctrl.h
3.1 KB
Del
OK
unicode
-
Del
OK
unistd.h
43.45 KB
Del
OK
utime.h
1.86 KB
Del
OK
utmp.h
3.15 KB
Del
OK
utmpx.h
4 KB
Del
OK
values.h
1.91 KB
Del
OK
verto-module.h
6.48 KB
Del
OK
verto.h
18.98 KB
Del
OK
video
-
Del
OK
wait.h
22 B
Del
OK
wchar.h
31.39 KB
Del
OK
wctype.h
5.42 KB
Del
OK
webp
-
Del
OK
wordexp.h
2.44 KB
Del
OK
xcb
-
Del
OK
xen
-
Del
OK
zconf.h
15.88 KB
Del
OK
zdict.h
25.81 KB
Del
OK
zlib.h
94 KB
Del
OK
zstd.h
167.36 KB
Del
OK
zstd_errors.h
4.43 KB
Del
OK
Edit: threads.h
/* ISO C11 Standard: 7.26 - Thread support library <threads.h>. Copyright (C) 2018-2021 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> #ifndef __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 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. */ #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 */
Save