summaryrefslogtreecommitdiff
path: root/gdb/run-on-main-thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/run-on-main-thread.h')
-rw-r--r--gdb/run-on-main-thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/run-on-main-thread.h b/gdb/run-on-main-thread.h
index 0bfe0b7456a..888328e7a51 100644
--- a/gdb/run-on-main-thread.h
+++ b/gdb/run-on-main-thread.h
@@ -25,4 +25,8 @@
extern void run_on_main_thread (std::function<void ()> &&);
+/* Return true on the main thread. */
+
+extern bool is_main_thread ();
+
#endif /* GDB_RUN_ON_MAIN_THREAD_H */