Motr  M0
m0_net_test_node_ctx Struct Reference

#include <node.h>

Collaboration diagram for m0_net_test_node_ctx:
Collaboration graph

Data Fields

struct m0_net_test_cmd_ctx ntnc_cmd
 
struct m0_net_test_servicentnc_svc
 
struct m0_thread ntnc_thread
 
bool ntnc_exit_flag
 
int ntnc_errno
 
struct m0_semaphore ntnc_thread_finished_sem
 

Detailed Description

Node context.

Definition at line 201 of file node.h.

Field Documentation

◆ ntnc_cmd

struct m0_net_test_cmd_ctx ntnc_cmd

Commands context. Connected to the test console.

Definition at line 203 of file node.h.

◆ ntnc_errno

int ntnc_errno

Error code. Set in node thread if something goes wrong.

Definition at line 215 of file node.h.

◆ ntnc_exit_flag

bool ntnc_exit_flag

Exit flag for the node thread. Node thread will check this flag and will terminate if it is set.

Todo:
make it atomic

Definition at line 213 of file node.h.

◆ ntnc_svc

struct m0_net_test_service* ntnc_svc

Test service

Definition at line 205 of file node.h.

◆ ntnc_thread

struct m0_thread ntnc_thread

Node thread

Definition at line 207 of file node.h.

◆ ntnc_thread_finished_sem

struct m0_semaphore ntnc_thread_finished_sem

'node-thread-was-finished' semaphore. Initialized to 0. External routines can down() or timeddown() this semaphore to wait for the node thread. up() at the end of the node thread.

Definition at line 222 of file node.h.


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