GNUnet  0.10.x
Data Fields
Barrier Struct Reference

Barrier. More...

Collaboration diagram for Barrier:
[legend]

Data Fields

struct GNUNET_HashCode hash
 The hashcode of the barrier name. More...
 
struct GNUNET_SERVICE_Clientmc
 The client handle to the master controller. More...
 
char * name
 The name of the barrier. More...
 
struct ClientCtxhead
 DLL head for the list of clients waiting for this barrier. More...
 
struct ClientCtxtail
 DLL tail for the list of clients waiting for this barrier. More...
 
struct WBarrierwhead
 DLL head for the list of barrier handles. More...
 
struct WBarrierwtail
 DLL tail for the list of barrier handles. More...
 
struct GNUNET_SCHEDULER_Tasktout_task
 Identifier for the timeout task. More...
 
enum GNUNET_TESTBED_BarrierStatus status
 The status of this barrier. More...
 
unsigned int num_wbarriers
 Number of barriers wrapped in the above DLL. More...
 
unsigned int num_wbarriers_reached
 Number of wrapped barriers reached so far. More...
 
unsigned int num_wbarriers_inited
 Number of wrapped barrier initialised so far. More...
 
unsigned int nreached
 Number of peers which have reached this barrier. More...
 
unsigned int nslaves
 Number of slaves we have initialised this barrier. More...
 
uint8_t quorum
 Quorum percentage to be reached. More...
 

Detailed Description

Barrier.

Definition at line 131 of file gnunet-service-testbed_barriers.c.

Field Documentation

◆ hash

struct GNUNET_HashCode Barrier::hash

The hashcode of the barrier name.

Definition at line 136 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_init(), and remove_barrier().

◆ mc

struct GNUNET_SERVICE_Client* Barrier::mc

The client handle to the master controller.

Definition at line 141 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_init(), and send_barrier_status_msg().

◆ name

char* Barrier::name

The name of the barrier.

Definition at line 146 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_init(), remove_barrier(), send_barrier_status_msg(), and wbarrier_status_cb().

◆ head

struct ClientCtx* Barrier::head

DLL head for the list of clients waiting for this barrier.

Definition at line 151 of file gnunet-service-testbed_barriers.c.

Referenced by disconnect_cb(), handle_barrier_status(), handle_barrier_wait(), and remove_barrier().

◆ tail

struct ClientCtx* Barrier::tail

DLL tail for the list of clients waiting for this barrier.

Definition at line 156 of file gnunet-service-testbed_barriers.c.

Referenced by disconnect_cb(), handle_barrier_wait(), and remove_barrier().

◆ whead

struct WBarrier* Barrier::whead

DLL head for the list of barrier handles.

Definition at line 161 of file gnunet-service-testbed_barriers.c.

Referenced by cancel_wrappers(), handle_barrier_init(), and handle_barrier_status().

◆ wtail

struct WBarrier* Barrier::wtail

DLL tail for the list of barrier handles.

Definition at line 166 of file gnunet-service-testbed_barriers.c.

Referenced by cancel_wrappers(), and handle_barrier_init().

◆ tout_task

struct GNUNET_SCHEDULER_Task* Barrier::tout_task

Identifier for the timeout task.

Definition at line 171 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_init().

◆ status

enum GNUNET_TESTBED_BarrierStatus Barrier::status

◆ num_wbarriers

unsigned int Barrier::num_wbarriers

Number of barriers wrapped in the above DLL.

Definition at line 181 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_init(), handle_barrier_wait(), and wbarrier_status_cb().

◆ num_wbarriers_reached

unsigned int Barrier::num_wbarriers_reached

Number of wrapped barriers reached so far.

Definition at line 186 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_wait(), and wbarrier_status_cb().

◆ num_wbarriers_inited

unsigned int Barrier::num_wbarriers_inited

Number of wrapped barrier initialised so far.

Definition at line 191 of file gnunet-service-testbed_barriers.c.

Referenced by wbarrier_status_cb().

◆ nreached

unsigned int Barrier::nreached

Number of peers which have reached this barrier.

Definition at line 196 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_wait().

◆ nslaves

unsigned int Barrier::nslaves

Number of slaves we have initialised this barrier.

Definition at line 201 of file gnunet-service-testbed_barriers.c.

◆ quorum

uint8_t Barrier::quorum

Quorum percentage to be reached.

Definition at line 206 of file gnunet-service-testbed_barriers.c.

Referenced by handle_barrier_init().


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