functions to speedup peer execution by manipulation system time More...
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "util-speedup", __VA_ARGS__) |
Functions | |
static void | do_speedup (void *cls) |
int | GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg) |
Start task that may speed up our system clock artificially. More... | |
void | GNUNET_SPEEDUP_stop_ () |
Stop tasks that modify clock behavior. More... | |
Variables | |
static struct GNUNET_TIME_Relative | interval |
static struct GNUNET_TIME_Relative | delta |
static struct GNUNET_SCHEDULER_Task * | speedup_task |
functions to speedup peer execution by manipulation system time
Interface for speedup routinues.
Definition in file speedup.c.
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "util-speedup", __VA_ARGS__) |
|
static |
Definition at line 42 of file speedup.c.
References delta, do_speedup(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_NO, GNUNET_SCHEDULER_add_delayed(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_TIME_set_offset(), interval, LOG, GNUNET_TIME_Relative::rel_value_us, and speedup_task.
Referenced by do_speedup(), and GNUNET_SPEEDUP_start_().
int GNUNET_SPEEDUP_start_ | ( | const struct GNUNET_CONFIGURATION_Handle * | cfg | ) |
Start task that may speed up our system clock artificially.
cfg | configuration to use |
Definition at line 60 of file speedup.c.
References cfg, delta, do_speedup(), GNUNET_assert, GNUNET_CONFIGURATION_get_value_time(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_NO, GNUNET_OK, GNUNET_SCHEDULER_add_now_with_lifeness(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_SYSERR, interval, LOG, GNUNET_TIME_Relative::rel_value_us, and speedup_task.
Referenced by program_main().
void GNUNET_SPEEDUP_stop_ | ( | void | ) |
Stop tasks that modify clock behavior.
Definition at line 100 of file speedup.c.
References delta, GNUNET_ERROR_TYPE_DEBUG, GNUNET_SCHEDULER_cancel(), interval, LOG, GNUNET_TIME_Relative::rel_value_us, and speedup_task.
Referenced by GNUNET_PROGRAM_conf_and_options(), GNUNET_SERVICE_run_(), and shutdown_task().
|
static |
Definition at line 34 of file speedup.c.
Referenced by do_speedup(), GNUNET_SPEEDUP_start_(), and GNUNET_SPEEDUP_stop_().
|
static |
Definition at line 36 of file speedup.c.
Referenced by add_setter_action(), check_notify_client(), disk_utilization_change_cb(), do_speedup(), file_hash_task(), GCCH_handle_channel_plaintext_data(), GCCH_handle_channel_plaintext_data_ack(), GCPP_update_score(), GDS_am_closest_peer(), GNUNET_CRYPTO_hash_sum(), GNUNET_MST_from_buffer(), GNUNET_PEER_change_rc(), GNUNET_SPEEDUP_start_(), GNUNET_SPEEDUP_stop_(), GNUNET_STATISTICS_update(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_TIME_absolute_approx_eq(), GNUNET_TIME_relative2s(), handle_client_recv_ok(), handle_dht_p2p_put(), handle_set(), internal_update(), is_before(), main(), notify_clients(), pick_random_dv_hops(), process_stdin(), select_peer(), send_get_known_results(), set_timetravel_time(), store_completed_cb(), update_next_challenge_time(), update_timeout(), update_tracker(), and update_velocity().
|
static |
Definition at line 38 of file speedup.c.
Referenced by do_speedup(), GNUNET_SPEEDUP_start_(), and GNUNET_SPEEDUP_stop_().