aboutsummaryrefslogtreecommitdiff
path: root/support/xthread.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-06-06 11:37:30 +0200
committerFlorian Weimer <fweimer@redhat.com>2023-06-06 11:37:30 +0200
commit047703fbb88eb38fbe973f3abedb279382f181d0 (patch)
treec0f844283ec811b297af8ec4f2226662dc02df37 /support/xthread.h
parente3622a8f391deea3b75a577dce70d023dfa3f1c7 (diff)
downloadglibc-047703fbb88eb38fbe973f3abedb279382f181d0.zip
glibc-047703fbb88eb38fbe973f3abedb279382f181d0.tar.gz
glibc-047703fbb88eb38fbe973f3abedb279382f181d0.tar.bz2
support: Add delayed__exit (with two underscores)
It calls _exit instead of exit once the timeout expires.
Diffstat (limited to 'support/xthread.h')
-rw-r--r--support/xthread.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/support/xthread.h b/support/xthread.h
index b1e85a9..402df56 100644
--- a/support/xthread.h
+++ b/support/xthread.h
@@ -25,11 +25,14 @@
__BEGIN_DECLS
-/* Terminate the process (with exit status 0) after SECONDS have
- elapsed, from a helper thread. The process is terminated with the
- exit function, so atexit handlers are executed. */
+/* Terminate the process (with exit (0)) after SECONDS have elapsed,
+ from a helper thread. The process is terminated with the exit
+ function, so atexit handlers are executed. */
void delayed_exit (int seconds);
+/* Like delayed_exit, but use _exit (0). */
+void delayed__exit (int seconds);
+
/* Returns true if Priority Inheritance support CLOCK_MONOTONIC. */
bool support_mutex_pi_monotonic (void);