IDA C++ SDK 9.2
Loading...
Searching...
No Matches
exec_request_t Struct Referenceabstract

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

#include <kernwin.hpp>

Public Types

enum  { MFF_MAGIC = 0x12345678 }
 Internal magic. More...

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Internal magic.

Enumerator
MFF_MAGIC 

Constructor & Destructor Documentation

◆ ~exec_request_t()

virtual exec_request_t::~exec_request_t ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ valid()

bool exec_request_t::valid ( ) const
inline

Can this request be executed?

◆ 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

◆ code

ssize_t exec_request_t::code = 0

temporary location, used internally

◆ 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: