Fcitx
|
A thread-safe event source can be triggered from other threads. More...
#include <fcitx-utils/eventloopinterface.h>
Public Member Functions | |
virtual void | send ()=0 |
Trigger the event from other thread. More... | |
![]() | |
virtual FCITX_NODISCARD bool | isEnabled () const =0 |
virtual void | setEnabled (bool enabled)=0 |
virtual FCITX_NODISCARD bool | isOneShot () const =0 |
virtual void | setOneShot ()=0 |
A thread-safe event source can be triggered from other threads.
Definition at line 70 of file eventloopinterface.h.
|
pure virtual |
Trigger the event from other thread.
The callback is guranteed to be called send() if it is enabled. Multiple call to send() may only trigger the callback once.
Implemented in fcitx::SDEventSourceAsync, and fcitx::LibUVSourceAsync.