GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
run-on-main-thread.c File Reference
#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
 

Function Documentation

◆ _initialize_run_on_main_thread()

void _initialize_run_on_main_thread ( )

Definition at line 123 of file run-on-main-thread.c.

Referenced by initialize_all_files().

◆ is_main_thread()

bool is_main_thread ( )

◆ run_events()

static void run_events ( int error,
gdb_client_data client_data )
static

Definition at line 51 of file run-on-main-thread.c.

References runnable_event, runnables, and serial_event_clear().

◆ run_on_main_thread()

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().

Variable Documentation

◆ runnable_event

struct serial_event* runnable_event
static

Definition at line 30 of file run-on-main-thread.c.

Referenced by run_events(), and run_on_main_thread().

◆ runnables

std::vector<std::function<void ()> > runnables
static

Definition at line 34 of file run-on-main-thread.c.

Referenced by run_events(), and run_on_main_thread().