Clean up <stdio.h> macros.
Also neuter __isthreaded.
We should come back to try to hide struct FILE's internals for LP64.
Bug: 3453512
Bug: 3453550
Change-Id: I7e115329fb4579246a72fea367b9fc8cb6055d18
diff --git a/libc/private/thread_private.h b/libc/private/thread_private.h
index b19ad09..f731181 100644
--- a/libc/private/thread_private.h
+++ b/libc/private/thread_private.h
@@ -15,11 +15,6 @@
*/
/*
- * This variable is 0 until a second thread is created.
- */
-extern int __isthreaded;
-
-/*
* helper macro to make unique names in the thread namespace
*/
#define __THREAD_NAME(name) __CONCAT(_thread_tagname_,name)
@@ -39,13 +34,7 @@
void _thread_atexit_lock(void);
void _thread_atexit_unlock(void);
-#define _ATEXIT_LOCK() do { \
- if (__isthreaded) \
- _thread_atexit_lock(); \
- } while (0)
-#define _ATEXIT_UNLOCK() do { \
- if (__isthreaded) \
- _thread_atexit_unlock();\
- } while (0)
+#define _ATEXIT_LOCK() _thread_atexit_lock()
+#define _ATEXIT_UNLOCK() _thread_atexit_unlock()
#endif /* _THREAD_PRIVATE_H_ */