Fcitx
Public Member Functions | List of all members
fcitx::EventSourceAsync Struct Referenceabstract

A thread-safe event source can be triggered from other threads. More...

#include <fcitx-utils/eventloopinterface.h>

Inheritance diagram for fcitx::EventSourceAsync:
Inheritance graph
[legend]
Collaboration diagram for fcitx::EventSourceAsync:
Collaboration graph
[legend]

Public Member Functions

virtual void send ()=0
 Trigger the event from other thread. More...
 
- Public Member Functions inherited from fcitx::EventSource
virtual FCITX_NODISCARD bool isEnabled () const =0
 
virtual void setEnabled (bool enabled)=0
 
virtual FCITX_NODISCARD bool isOneShot () const =0
 
virtual void setOneShot ()=0
 

Detailed Description

A thread-safe event source can be triggered from other threads.

Since
5.1.13

Definition at line 70 of file eventloopinterface.h.

Member Function Documentation

◆ send()

virtual void fcitx::EventSourceAsync::send ( )
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.


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