Fcitx
Public Member Functions | Protected Attributes | List of all members
fcitx::SDEventSourceAsync Struct Reference
Inheritance diagram for fcitx::SDEventSourceAsync:
Inheritance graph
[legend]
Collaboration diagram for fcitx::SDEventSourceAsync:
Collaboration graph
[legend]

Public Member Functions

 SDEventSourceAsync (EventLoopInterfaceV2 *event, EventCallback callback)
 
bool isEnabled () const override
 
void setEnabled (bool enabled) override
 
bool isOneShot () const override
 
void setOneShot () override
 
void send () override
 Trigger the event from other thread. More...
 

Protected Attributes

UnixFD fd_ [2]
 
std::unique_ptr< EventSourceIOioEvent_
 

Detailed Description

Definition at line 382 of file event_sdevent.cpp.

Member Function Documentation

◆ send()

void fcitx::SDEventSourceAsync::send ( )
inlineoverridevirtual

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.

Implements fcitx::EventSourceAsync.

Definition at line 408 of file event_sdevent.cpp.


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