Data Fields | |
| struct Step * | prev |
| All steps of one session are in a linked list for easier deallocation. | |
| struct Step * | next |
| All steps of one session are in a linked list for easier deallocation. | |
| struct ConsensusSession * | session |
| struct TaskEntry ** | tasks |
| Tasks that this step is composed of. | |
| 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. | |
| struct GNUNET_SCHEDULER_Task * | timeout_task |
| Task that will run this step despite any pending prerequisites. | |
| unsigned int | is_running |
| unsigned int | is_finished |
| unsigned int | round |
| Synchrony round of the task. | |
| char * | debug_name |
| Human-readable name for the task, used for debugging. | |
| 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. | |
Definition at line 251 of file gnunet-service-consensus.c.
| struct Step* Step::prev |
All steps of one session are in a linked list for easier deallocation.
Definition at line 257 of file gnunet-service-consensus.c.
| struct Step* Step::next |
All steps of one session are in a linked list for easier deallocation.
Definition at line 263 of file gnunet-service-consensus.c.
Referenced by run_ready_steps(), and task_start_apply_round().
| struct ConsensusSession* Step::session |
Definition at line 265 of file gnunet-service-consensus.c.
Referenced by compute_global_id(), construct_task_graph(), construct_task_graph_gradecast(), create_set_copy_for_task(), create_step(), finish_step(), finish_task(), get_peer_idx(), run_ready_steps(), send_to_client_iter(), set_copy_cb(), set_result_cb(), task_other_peer(), task_start_apply_round(), task_start_eval_echo(), task_start_finish(), task_start_grade(), task_start_reconcile(), and try_finish_step_early().
| struct TaskEntry** Step::tasks |
Tasks that this step is composed of.
Definition at line 270 of file gnunet-service-consensus.c.
Referenced by put_task(), and run_ready_steps().
| unsigned int Step::tasks_len |
Definition at line 271 of file gnunet-service-consensus.c.
Referenced by finish_step(), finish_task(), put_task(), run_ready_steps(), and set_result_cb().
| unsigned int Step::tasks_cap |
Definition at line 272 of file gnunet-service-consensus.c.
Referenced by put_task().
| unsigned int Step::finished_tasks |
Definition at line 274 of file gnunet-service-consensus.c.
Referenced by finish_step(), finish_task(), run_ready_steps(), and set_result_cb().
| struct Step** Step::subordinates |
Definition at line 283 of file gnunet-service-consensus.c.
Referenced by finish_step(), step_depend_on(), and try_finish_step_early().
| unsigned int Step::subordinates_len |
Definition at line 284 of file gnunet-service-consensus.c.
Referenced by finish_step(), run_ready_steps(), step_depend_on(), and try_finish_step_early().
| unsigned int Step::subordinates_cap |
Definition at line 285 of file gnunet-service-consensus.c.
Referenced by step_depend_on().
| size_t Step::pending_prereq |
Counter for the prerequisites of this step.
Definition at line 290 of file gnunet-service-consensus.c.
Referenced by finish_step(), run_ready_steps(), step_depend_on(), and try_finish_step_early().
| struct GNUNET_SCHEDULER_Task* Step::timeout_task |
Task that will run this step despite any pending prerequisites.
Definition at line 295 of file gnunet-service-consensus.c.
| unsigned int Step::is_running |
Definition at line 297 of file gnunet-service-consensus.c.
Referenced by finish_step(), run_ready_steps(), and try_finish_step_early().
| unsigned int Step::is_finished |
Definition at line 299 of file gnunet-service-consensus.c.
Referenced by finish_step(), run_ready_steps(), and try_finish_step_early().
| unsigned int Step::round |
Synchrony round of the task.
Determines the deadline for the task.
Definition at line 304 of file gnunet-service-consensus.c.
Referenced by construct_task_graph(), construct_task_graph_gradecast(), create_step(), run_ready_steps(), and step_depend_on().
| char* Step::debug_name |
Human-readable name for the task, used for debugging.
Definition at line 309 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().
| 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 319 of file gnunet-service-consensus.c.
Referenced by create_step(), and try_finish_step_early().