Namespaces
Records
-
class Context -
class DispatcherStub -
class Executor -
class GuestBellTrap -
class GuestBellTrapBase -
class GuestBellTrapMethod -
class Irq -
class IrqBase -
class IrqMethod -
class Loop -
class LoopInterface -
class PagedVmo -
class PagedVmoBase -
class PagedVmoMethod -
class Receiver -
class ReceiverBase -
class ReceiverMethod -
class SubloopToken -
class Task -
class TaskBase -
class TaskClosure -
class TaskClosureMethod -
class TaskMethod -
class TestLoop -
class Wait -
class WaitBase -
class WaitMethod -
class WaitOnce -
class sequence_checker -
class synchronization_checker
Functions
-
zx::time Now (async_dispatcher_t * dispatcher)Returns the current time in the dispatcher's timebase.
For most loops, this is generally obtained from |ZX_CLOCK_MONOTONIC|
but certain loops may use a different timebase, notably for testing.
Defined at line 16 of file ../../sdk/lib/async/include/lib/async/cpp/time.h
-
void NewTestLoopDispatcher (async_dispatcher_t ** dispatcher, async_test_subloop_t ** loop)Creates a new async dispatcher-based test loop. Returns the async dispatcher
in |dispatcher| and the interface to control it in |loop|.
Defined at line 371 of file ../../sdk/lib/async-testing/test_loop_dispatcher.cc
-
zx_status_t PostTask (async_dispatcher_t * dispatcher, fit::closure handler)Posts a task to invoke |handler| with a deadline of now.
The handler will not run if the dispatcher shuts down before it comes due.
Returns |ZX_OK| if the task was successfully posted.
Returns |ZX_ERR_BAD_STATE| if the dispatcher is shutting down.
Returns |ZX_ERR_NOT_SUPPORTED| if not supported by the dispatcher.
Defined at line 31 of file ../../sdk/lib/async/task.cc
-
zx_status_t PostDelayedTask (async_dispatcher_t * dispatcher, fit::closure handler, zx::duration delay)Posts a task to invoke |handler| with a deadline expressed as a |delay| from now.
The handler will not run if the dispatcher shuts down before it comes due.
Returns |ZX_OK| if the task was successfully posted.
Returns |ZX_ERR_BAD_STATE| if the dispatcher is shutting down.
Returns |ZX_ERR_NOT_SUPPORTED| if not supported by the dispatcher.
Defined at line 35 of file ../../sdk/lib/async/task.cc
-
zx_status_t PostTaskForTime (async_dispatcher_t * dispatcherfit::closure handlerzx::time deadline)Posts a task to invoke |handler| with the specified |deadline|.
The handler will not run if the dispatcher shuts down before it comes due.
Returns |ZX_OK| if the task was successfully posted.
Returns |ZX_ERR_BAD_STATE| if the dispatcher is shutting down.
Returns |ZX_ERR_NOT_SUPPORTED| if not supported by the dispatcher.
Defined at line 41 of file ../../sdk/lib/async/task.cc