Motr  M0
m0_loc_thread Struct Reference
Collaboration diagram for m0_loc_thread:
Collaboration graph

Data Fields

enum loc_thread_state lt_state
 
struct m0_thread lt_thread
 
struct m0_tlink lt_linkage
 
struct m0_fom_localitylt_loc
 
struct m0_clink lt_clink
 
uint64_t lt_magix
 

Detailed Description

Locality thread.

Instances of this structure are allocated by loc_thr_create() and freed by loc_thr_fini(). At any time m0_loc_thread::lt_linkage is in m0_fom_locality::fl_threads list and m0_loc_thread::lt_clink is registered with some channel.

->lt_linkage is protected by the locality's group lock. ->lt_state is updated under the group lock, so it can be used by invariants. Other fields are only accessed by the current thread and require no locking.

Definition at line 165 of file fom.c.

Field Documentation

◆ lt_clink

struct m0_clink lt_clink

Definition at line 170 of file fom.c.

◆ lt_linkage

struct m0_tlink lt_linkage

Definition at line 168 of file fom.c.

◆ lt_loc

struct m0_fom_locality* lt_loc

Definition at line 169 of file fom.c.

◆ lt_magix

uint64_t lt_magix

Definition at line 171 of file fom.c.

◆ lt_state

enum loc_thread_state lt_state

Definition at line 166 of file fom.c.

◆ lt_thread

struct m0_thread lt_thread

Definition at line 167 of file fom.c.


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