Flutter Engine
fml::Semaphore Class Reference

#include <semaphore.h>

Public Member Functions

 Semaphore (uint32_t count)
 
 ~Semaphore ()
 
bool IsValid () const
 
bool TryWait ()
 
void Signal ()
 

Detailed Description

Definition at line 17 of file semaphore.h.

Constructor & Destructor Documentation

◆ Semaphore()

fml::Semaphore::Semaphore ( uint32_t  count)
explicit

Definition at line 149 of file semaphore.cc.

References ~Semaphore().

149 : _impl(new PlatformSemaphore(count)) {}

◆ ~Semaphore()

fml::Semaphore::~Semaphore ( )
default

Referenced by Semaphore().

Member Function Documentation

◆ IsValid()

bool fml::Semaphore::IsValid ( ) const

Definition at line 153 of file semaphore.cc.

Referenced by TEST().

153  {
154  return _impl->IsValid();
155 }

◆ Signal()

void fml::Semaphore::Signal ( )

Definition at line 161 of file semaphore.cc.

Referenced by flutter::Pipeline< R >::Consume(), flutter::FxlToDartOrEarlier(), flutter::Animator::Render(), and TEST().

161  {
162  return _impl->Signal();
163 }

◆ TryWait()

bool fml::Semaphore::TryWait ( )

Definition at line 157 of file semaphore.cc.

Referenced by flutter::Animator::RequestFrame(), and TEST().

157  {
158  return _impl->TryWait();
159 }

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