IDA SDK
exec_request_t Struct Referenceabstract

Detailed Description

Execute code in the main thread - to be used with execute_sync().

Public Attributes

ssize_t code = 0
 temporary location, used internally
 
qsemaphore_t sem = nullptr
 semaphore to communicate with the main thread. More...
 

Public Member Functions

bool valid (void) const
 Can this request be executed?
 
virtual ssize_t idaapi execute ()=0
 Callback to be executed. More...
 
virtual ~exec_request_t ()
 Destructor.
 

Public Types

enum  { MFF_MAGIC = 0x12345678 }
 Internal magic.
 

Member Function Documentation

◆ execute()

virtual ssize_t idaapi exec_request_t::execute ( )
pure virtual

Callback to be executed.

If this function raises an exception, execute_sync() never returns.

Member Data Documentation

◆ sem

qsemaphore_t exec_request_t::sem = nullptr

semaphore to communicate with the main thread.

If nullptr, will be initialized by execute_sync().


The documentation for this struct was generated from the following file: