libcoro  1.0
Coroutine support library for C++20

◆ build_queue()

void coro::mutex::build_queue ( awaiter *  r,
awaiter *  stop 
)
inlineprotected

builds internal queue

Picks are requests and reorder them in reverse order so stack is converted to queue. This is done by the owner.

Parameters
rpointer request stack (linked list)
stoppointer to item, which is used as stop item (which is often first awaiter or locked flag)

Definition at line 169 of file mutex.h.

+ Here is the caller graph for this function: