Motr
M0
|
Data Fields | |
enum loc_thread_state | lt_state |
struct m0_thread | lt_thread |
struct m0_tlink | lt_linkage |
struct m0_fom_locality * | lt_loc |
struct m0_clink | lt_clink |
uint64_t | lt_magix |
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.
struct m0_fom_locality* lt_loc |
enum loc_thread_state lt_state |