Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Enumerations | Variables
eventhandler.h File Reference
#include "bin/builtin.h"
#include "bin/dartutils.h"
#include "bin/isolate_data.h"
#include "platform/hashmap.h"
#include "platform/priority_queue.h"

Go to the source code of this file.

Classes

class  dart::bin::TimeoutQueue
 
class  dart::bin::InterruptMessage
 
class  dart::bin::CircularLinkedList< T >
 
class  dart::bin::DescriptorInfoBase
 
class  dart::bin::DescriptorInfoSingleMixin< DI >
 
class  dart::bin::DescriptorInfoMultipleMixin< DI >
 
class  dart::bin::EventHandler
 

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define COMMAND_MASK
 
#define EVENT_MASK
 
#define IS_COMMAND(data, command_bit)    ((data & COMMAND_MASK) == (1 << command_bit))
 
#define IS_EVENT(data, event_bit)    ((data & EVENT_MASK) == (1 << event_bit))
 
#define IS_IO_EVENT(data)
 
#define IS_LISTENING_SOCKET(data)    ((data & (1 << kListeningSocket)) != 0)
 
#define IS_SIGNAL_SOCKET(data)    ((data & (1 << kSignalSocket)) != 0)
 
#define TOKEN_COUNT(data)   (data & ((1 << kCloseCommand) - 1))
 

Enumerations

enum  dart::bin::MessageFlags {
  dart::bin::kInEvent = 0 , dart::bin::kOutEvent = 1 , dart::bin::kErrorEvent = 2 , dart::bin::kCloseEvent = 3 ,
  dart::bin::kDestroyedEvent = 4 , dart::bin::kCloseCommand = 8 , dart::bin::kShutdownReadCommand = 9 , dart::bin::kShutdownWriteCommand = 10 ,
  dart::bin::kReturnTokenCommand = 11 , dart::bin::kSetEventMaskCommand = 12 , dart::bin::kListeningSocket = 16 , dart::bin::kPipe = 17 ,
  dart::bin::kSignalSocket = 18
}
 

Variables

static constexpr intptr_t dart::bin::kInterruptMessageSize = sizeof(InterruptMessage)
 
static constexpr intptr_t dart::bin::kInfinityTimeout = -1
 
static constexpr intptr_t dart::bin::kTimerId = -1
 
static constexpr intptr_t dart::bin::kShutdownId = -2
 

Macro Definition Documentation

◆ COMMAND_MASK

#define COMMAND_MASK
Value:
((1 << kCloseCommand) | \
@ kShutdownWriteCommand
Definition: eventhandler.h:30
@ kReturnTokenCommand
Definition: eventhandler.h:31
@ kShutdownReadCommand
Definition: eventhandler.h:29
@ kSetEventMaskCommand
Definition: eventhandler.h:32

Definition at line 39 of file eventhandler.h.

◆ EVENT_MASK

#define EVENT_MASK
Value:
((1 << kInEvent) | \
(1 << kOutEvent) | \
(1 << kErrorEvent) | \
(1 << kCloseEvent) | \
@ kDestroyedEvent
Definition: eventhandler.h:27

Definition at line 44 of file eventhandler.h.

◆ IS_COMMAND

#define IS_COMMAND (   data,
  command_bit 
)     ((data & COMMAND_MASK) == (1 << command_bit))

Definition at line 49 of file eventhandler.h.

◆ IS_EVENT

#define IS_EVENT (   data,
  event_bit 
)     ((data & EVENT_MASK) == (1 << event_bit))

Definition at line 51 of file eventhandler.h.

◆ IS_IO_EVENT

#define IS_IO_EVENT (   data)
Value:
((data & (1 << kInEvent | 1 << kOutEvent | 1 << kCloseEvent)) != 0 && \
(data & ~(1 << kInEvent | 1 << kOutEvent | 1 << kCloseEvent)) == 0)
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Definition at line 53 of file eventhandler.h.

◆ IS_LISTENING_SOCKET

#define IS_LISTENING_SOCKET (   data)     ((data & (1 << kListeningSocket)) != 0)

Definition at line 56 of file eventhandler.h.

◆ IS_SIGNAL_SOCKET

#define IS_SIGNAL_SOCKET (   data)     ((data & (1 << kSignalSocket)) != 0)

Definition at line 58 of file eventhandler.h.

◆ TOKEN_COUNT

#define TOKEN_COUNT (   data)    (data & ((1 << kCloseCommand) - 1))

Definition at line 60 of file eventhandler.h.