Files
binutils-gdb/gdb/unittests
Tom Tromey 0e0174f4d5 Introduce run_on_main_thread
This introduces a way for a callback to be run on the main thread.

gdb/ChangeLog
2019-09-30  Tom Tromey  <tom@tromey.com>

	* unittests/main-thread-selftests.c: New file.
	* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
	main-thread-selftests.c.
	* ser-event.h (run_on_main_thread): Declare.
	* ser-event.c (runnable_event, runnables, runnable_mutex): New
	globals.
	(run_events, run_on_main_thread, _initialize_ser_event): New
	functions.
2019-09-30 20:30:39 -06:00
..