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, 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 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_SERVICE_run_(), and shutdown_task().
|
static |
Definition at line 1 of file speedup.c.
Referenced by do_speedup(), GNUNET_SPEEDUP_start_(), GNUNET_SPEEDUP_stop_(), and libgnunet_plugin_transport_udp_init().
|
static |
Definition at line 1 of file speedup.c.
Referenced by add_get_request_to_pending(), add_setter_action(), adjust_running_peers(), check_notify_client(), churn_cb(), client_receive(), disk_utilization_change_cb(), do_speedup(), file_hash_task(), GCCH_handle_channel_plaintext_data(), GCCH_handle_channel_plaintext_data_ack(), GCPP_update_score(), GNUNET_CRYPTO_hash_sum(), GNUNET_PEER_change_rc(), GNUNET_SERVER_mst_receive(), GNUNET_SPEEDUP_start_(), GNUNET_SPEEDUP_stop_(), GNUNET_STATISTICS_update(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_TIME_absolute_approx_eq(), handle_client_recv_ok(), handle_dht_p2p_put(), handle_set(), internal_update(), is_before(), main(), manage_service_wrapper(), mst_receive(), notify_clients(), pick_random_dv_hops(), process_stdin(), relative_multiply_double(), select_peer(), send_utilization_data(), solver_bandwidth_changed_cb(), store_completed_cb(), update_hello(), 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_().