GNUnet 0.22.0
GNUNET_TESTING_Barrier Struct Reference

An entry for a barrier list. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/lib/testing/testing_api_barrier.h>

Collaboration diagram for GNUNET_TESTING_Barrier:
[legend]

Data Fields

struct GNUNET_ShortHashCode barrier_id
 
struct GNUNET_TESTING_AsyncContext ** waiting
 Context of barrier reached commands of our local interpreter that are currently blocked on this barrier. More...
 
unsigned int cnt_waiting
 Length of the waiting array. More...
 
unsigned int expected_reaches
 Number of total commands expected to be reached by the barrier. More...
 
unsigned int reached
 Number of times the barrier has been reached. More...
 
bool inherited
 Did we inherit the barrier from our parent loop? More...
 
bool satisfied
 Did we reach expected_reaches? Used in particular if inherited is true and we cannot compute locally. More...
 

Detailed Description

An entry for a barrier list.

Definition at line 33 of file testing_api_barrier.h.

Field Documentation

◆ barrier_id

struct GNUNET_ShortHashCode GNUNET_TESTING_Barrier::barrier_id

◆ waiting

struct GNUNET_TESTING_AsyncContext** GNUNET_TESTING_Barrier::waiting

Context of barrier reached commands of our local interpreter that are currently blocked on this barrier.

Definition at line 42 of file testing_api_barrier.h.

Referenced by barrier_reached_run(), handle_helper_barrier_crossable(), and handle_helper_barrier_reached().

◆ cnt_waiting

unsigned int GNUNET_TESTING_Barrier::cnt_waiting

Length of the waiting array.

Definition at line 47 of file testing_api_barrier.h.

Referenced by barrier_reached_run(), handle_helper_barrier_crossable(), and handle_helper_barrier_reached().

◆ expected_reaches

unsigned int GNUNET_TESTING_Barrier::expected_reaches

Number of total commands expected to be reached by the barrier.

Definition at line 52 of file testing_api_barrier.h.

Referenced by barrier_reached_run(), GNUNET_TESTING_cmd_barrier_create(), and handle_helper_barrier_reached().

◆ reached

unsigned int GNUNET_TESTING_Barrier::reached

Number of times the barrier has been reached.

Only used if inherited is false.

Definition at line 58 of file testing_api_barrier.h.

Referenced by barrier_reached_run(), and handle_helper_barrier_reached().

◆ inherited

bool GNUNET_TESTING_Barrier::inherited

Did we inherit the barrier from our parent loop?

Definition at line 63 of file testing_api_barrier.h.

Referenced by barrier_reached_run(), handle_helper_barrier_reached(), and start_testcase().

◆ satisfied

bool GNUNET_TESTING_Barrier::satisfied

Did we reach expected_reaches? Used in particular if inherited is true and we cannot compute locally.

Definition at line 69 of file testing_api_barrier.h.

Referenced by barrier_reached_run(), handle_helper_barrier_crossable(), and handle_helper_barrier_reached().


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