boost::capy::async_mutex::lock_awaiter

Suspends the caller until the mutex is free, or resumes it with error::canceled on a stop request.

Synopsis

class lock_awaiter
    : public /* implementation-defined */::node

Base Classes

Name

Description

/* implementation-defined */::node

Member Functions

Name

Description

lock_awaiter [constructor] [deleted]

Constructors

~lock_awaiter [destructor]

Destroy the awaiter, leaving the mutex unable to reach it.

operator= [deleted]

Assignment operators

await_ready

Acquire the mutex if it is free, reporting whether to suspend.

await_resume

Complete the acquisition and report the outcome.

await_suspend

Enqueue the awaiting coroutine until the mutex is released.

Friends

Name

Description

boost::capy::async_mutex

Queues coroutines in lock() and resumes exactly one when the mutex is free.

Created with MrDocs