GDB (xrefs)
|
#include "defs.h"
#include "run-on-main-thread.h"
#include "ser-event.h"
#include "gdbsupport/event-loop.h"
Go to the source code of this file.
Functions | |
static void | run_events (int error, gdb_client_data client_data) |
void | run_on_main_thread (std::function< void()> &&func) |
bool | is_main_thread () |
void | _initialize_run_on_main_thread () |
Variables | |
static struct serial_event * | runnable_event |
static std::vector< std::function< void()> > | runnables |
void _initialize_run_on_main_thread | ( | ) |
Definition at line 123 of file run-on-main-thread.c.
Referenced by initialize_all_files().
bool is_main_thread | ( | ) |
Definition at line 104 of file run-on-main-thread.c.
Referenced by cooked_index::cooked_index(), main(), maybe_quit(), wait_for_index_cache(), and cooked_index::~cooked_index().
|
static |
Definition at line 51 of file run-on-main-thread.c.
References runnable_event, runnables, and serial_event_clear().
void run_on_main_thread | ( | std::function< void()> && | func | ) |
Definition at line 88 of file run-on-main-thread.c.
References func, runnable_event, runnables, and serial_event_set().
Referenced by gdb_demangle().
|
static |
Definition at line 30 of file run-on-main-thread.c.
Referenced by run_events(), and run_on_main_thread().
|
static |
Definition at line 34 of file run-on-main-thread.c.
Referenced by run_events(), and run_on_main_thread().