From 8ef9c6fc5bcfe1b606229a8da024f76b2d5048c1 Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 20 Aug 2016 12:26:44 +0000 Subject: MFC r303795: Add __cxa_thread_atexit(3) API implementation. --- lib/libc/include/libc_private.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libc/include/libc_private.h') diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h index 6e2ff66..c219f55 100644 --- a/lib/libc/include/libc_private.h +++ b/lib/libc/include/libc_private.h @@ -264,6 +264,12 @@ extern const char *__progname; void _malloc_thread_cleanup(void); /* + * This function is used by the threading libraries to notify libc that a + * thread is exiting, so its thread-local dtors should be called. + */ +void __cxa_thread_call_dtors(void); + +/* * These functions are used by the threading libraries in order to protect * malloc across fork(). */ -- cgit v1.1