summaryrefslogtreecommitdiff
path: root/src/maybe_threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/maybe_threads.h')
-rw-r--r--src/maybe_threads.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/maybe_threads.h b/src/maybe_threads.h
index b60f4ef..c6cfdf7 100644
--- a/src/maybe_threads.h
+++ b/src/maybe_threads.h
@@ -51,4 +51,11 @@ int perftools_pthread_setspecific(pthread_key_t key, void *val);
int perftools_pthread_once(pthread_once_t *ctl,
void (*init_routine) (void));
+// Our wrapper for pthread_atfork. Does _nothing_ when there are no
+// threads. See static_vars.cc:SetupAtForkLocksHandler for only user
+// of this.
+void perftools_pthread_atfork(void (*before)(),
+ void (*parent_after)(),
+ void (*child_after)());
+
#endif /* GOOGLE_MAYBE_THREADS_H_ */