![]() |
GNUnet
0.11.x
|
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__) |
Definition at line 30 of file speedup.c.
Referenced by do_speedup(), GNUNET_SPEEDUP_start_(), and GNUNET_SPEEDUP_stop_().
|
static |
Definition at line 41 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, and GNUNET_TIME_Relative::rel_value_us.
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 65 of file speedup.c.
References 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, and GNUNET_TIME_Relative::rel_value_us.
Referenced by program_main().
void GNUNET_SPEEDUP_stop_ | ( | void | ) |
Stop tasks that modify clock behavior.
Definition at line 105 of file speedup.c.
References delta, GNUNET_ERROR_TYPE_DEBUG, GNUNET_SCHEDULER_cancel(), interval, LOG, and GNUNET_TIME_Relative::rel_value_us.
Referenced by GNUNET_SERVICE_run_(), and shutdown_task().
|
static |
Definition at line 33 of file speedup.c.
Referenced by do_speedup(), GNUNET_SPEEDUP_start_(), GNUNET_SPEEDUP_stop_(), and libgnunet_plugin_transport_udp_init().
|
static |
Definition at line 35 of file speedup.c.
Referenced by add_setter_action(), adjust_running_peers(), churn_cb(), disk_utilization_change_cb(), do_speedup(), file_hash_task(), GCCH_handle_channel_plaintext_data(), GCCH_handle_channel_plaintext_data_ack(), GCPP_update_score(), GNUNET_MST_from_buffer(), GNUNET_PEER_change_rc(), GNUNET_SERVER_mst_receive(), GNUNET_SPEEDUP_start_(), GNUNET_SPEEDUP_stop_(), handle_client_recv_ok(), handle_set(), is_before(), main(), manage_service_wrapper(), mst_receive(), pick_random_dv_hops(), pong_handler(), send_get_known_results(), set_timetravel_time(), and solver_bandwidth_changed_cb().
|
static |