Flutter Engine
 
Loading...
Searching...
No Matches
fml::TaskQueueId Class Reference

#include <task_queue_id.h>

Public Member Functions

 TaskQueueId (size_t value)
 Intializes a task queue with the given value as it's ID.
 
 operator size_t () const
 
bool is_valid () const
 

Static Public Member Functions

static TaskQueueId Invalid ()
 

Static Public Attributes

static const size_t kUnmerged = ULONG_MAX
 
static const size_t kInvalid = ULONG_MAX - 1
 

Detailed Description

MessageLoopTaskQueues task dispatcher's internal task queue identifier.

Definition at line 15 of file task_queue_id.h.

Constructor & Destructor Documentation

◆ TaskQueueId()

fml::TaskQueueId::TaskQueueId ( size_t  value)
inlineexplicit

Intializes a task queue with the given value as it's ID.

Definition at line 26 of file task_queue_id.h.

26: value_(value) {}

References value.

Member Function Documentation

◆ Invalid()

static TaskQueueId fml::TaskQueueId::Invalid ( )
inlinestatic

Definition at line 28 of file task_queue_id.h.

28{ return TaskQueueId(kInvalid); }
static const size_t kInvalid
TaskQueueId(size_t value)
Intializes a task queue with the given value as it's ID.

References kInvalid.

Referenced by flutter::testing::DartFixture::CreateSettingsForFixture(), fml::CurrentMessageLoopAddAfterTaskObserver(), FlutterEngineInitialize(), and flutter::StartupAndShutdownShell().

◆ is_valid()

bool fml::TaskQueueId::is_valid ( ) const
inline

Definition at line 34 of file task_queue_id.h.

34{ return value_ != kInvalid; }

References kInvalid.

Referenced by flutter::EmbedderEngine::RunTask().

◆ operator size_t()

fml::TaskQueueId::operator size_t ( ) const
inline

Definition at line 30 of file task_queue_id.h.

30 { // NOLINT(google-explicit-constructor)
31 return value_;
32 }

Member Data Documentation

◆ kInvalid

const size_t fml::TaskQueueId::kInvalid = ULONG_MAX - 1
static

This constant indicates an invalid task queue. Used in embedder supplied task runners not associated with a task queue.

Definition at line 23 of file task_queue_id.h.

Referenced by Invalid(), and is_valid().

◆ kUnmerged

const size_t fml::TaskQueueId::kUnmerged = ULONG_MAX
static

This constant indicates whether a task queue has been subsumed by a task runner.

Definition at line 19 of file task_queue_id.h.


The documentation for this class was generated from the following files: