Motr  M0
m0_sm_ast_wait Struct Reference

#include <sm.h>

Collaboration diagram for m0_sm_ast_wait:
Collaboration graph

Data Fields

bool aw_allowed
 
struct m0_atomic64 aw_active
 
struct m0_chan aw_chan
 

Detailed Description

API of waiting for AST completion.

Use example:

struct m0_sm_ast_wait *wait = ...;
struct m0_mutex *guard = ...; // m0_sm_group::s_lock, when possible.
// Thread A:
ast->sa_cb = ast_cb; // Must call m0_sm_ast_wait_signal() at the end.
// Thread B:

Definition at line 837 of file sm.h.

Field Documentation

◆ aw_active

struct m0_atomic64 aw_active

Number of posted, still not completed ASTs.

Definition at line 841 of file sm.h.

◆ aw_allowed

bool aw_allowed

Whether posting of ASTs is allowed.

Definition at line 839 of file sm.h.

◆ aw_chan

struct m0_chan aw_chan

Channel on which AST completion is signalled.

Definition at line 843 of file sm.h.


The documentation for this struct was generated from the following file: