GNUnet  0.11.x
Data Fields
Step Struct Reference
Collaboration diagram for Step:
[legend]

Data Fields

struct Stepprev
 All steps of one session are in a linked list for easier deallocation. More...
 
struct Stepnext
 All steps of one session are in a linked list for easier deallocation. More...
 
struct ConsensusSessionsession
 
struct TaskEntry ** tasks
 Tasks that this step is composed of. More...
 
unsigned int tasks_len
 
unsigned int tasks_cap
 
unsigned int finished_tasks
 
struct Step ** subordinates
 
unsigned int subordinates_len
 
unsigned int subordinates_cap
 
size_t pending_prereq
 Counter for the prerequisites of this step. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 
unsigned int is_running
 
unsigned int is_finished
 
unsigned int round
 
char * debug_name
 Human-readable name for the task, used for debugging. More...
 
int early_finishable
 When we're doing an early finish, how should this step be treated? If GNUNET_YES, the step will be marked as finished without actually running its tasks. More...
 

Detailed Description

Definition at line 243 of file gnunet-service-consensus.c.

Field Documentation

◆ prev

struct Step* Step::prev

All steps of one session are in a linked list for easier deallocation.

Definition at line 249 of file gnunet-service-consensus.c.

◆ next

struct Step* Step::next

All steps of one session are in a linked list for easier deallocation.

Definition at line 255 of file gnunet-service-consensus.c.

Referenced by run_ready_steps(), and task_start_apply_round().

◆ session

struct ConsensusSession* Step::session

◆ tasks

struct TaskEntry** Step::tasks

Tasks that this step is composed of.

Definition at line 262 of file gnunet-service-consensus.c.

Referenced by put_task(), and run_ready_steps().

◆ tasks_len

unsigned int Step::tasks_len

◆ tasks_cap

unsigned int Step::tasks_cap

Definition at line 264 of file gnunet-service-consensus.c.

Referenced by put_task().

◆ finished_tasks

unsigned int Step::finished_tasks

◆ subordinates

struct Step** Step::subordinates

Definition at line 275 of file gnunet-service-consensus.c.

Referenced by finish_step(), step_depend_on(), and try_finish_step_early().

◆ subordinates_len

unsigned int Step::subordinates_len

◆ subordinates_cap

unsigned int Step::subordinates_cap

Definition at line 277 of file gnunet-service-consensus.c.

Referenced by step_depend_on().

◆ pending_prereq

size_t Step::pending_prereq

Counter for the prerequisites of this step.

Definition at line 283 of file gnunet-service-consensus.c.

Referenced by finish_step(), run_ready_steps(), step_depend_on(), and try_finish_step_early().

◆ timeout_task

struct GNUNET_SCHEDULER_Task* Step::timeout_task

Definition at line 289 of file gnunet-service-consensus.c.

◆ is_running

unsigned int Step::is_running

Definition at line 291 of file gnunet-service-consensus.c.

Referenced by finish_step(), run_ready_steps(), and try_finish_step_early().

◆ is_finished

unsigned int Step::is_finished

Definition at line 293 of file gnunet-service-consensus.c.

Referenced by finish_step(), run_ready_steps(), and try_finish_step_early().

◆ round

unsigned int Step::round

◆ debug_name

char* Step::debug_name

Human-readable name for the task, used for debugging.

Definition at line 305 of file gnunet-service-consensus.c.

Referenced by construct_task_graph(), construct_task_graph_gradecast(), finish_step(), put_task(), run_ready_steps(), step_depend_on(), and try_finish_step_early().

◆ early_finishable

int Step::early_finishable

When we're doing an early finish, how should this step be treated? If GNUNET_YES, the step will be marked as finished without actually running its tasks.

Otherwise, the step will still be run even after an early finish.

Note that a task may never be finished early if it is already running.

Definition at line 318 of file gnunet-service-consensus.c.

Referenced by create_step(), and try_finish_step_early().


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