![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <update_queue.h>
Collaboration diagram for update_queue:Public Member Functions | |
| ~update_queue () | |
| void | init () |
| void | add (uq_callback_t callback, void *data) |
| void | processing_finished (int request_id) |
| bool | has_callback (uq_callback_t callback) |
| bool | has_callback_full (uq_callback_t cb, const void **data, uq_free_fn_t *free_fn) |
| void | connect_processing_finished (int request_id, uq_callback_t cb, void *data) |
| void | connect_processing_finished_unique (int request_id, uq_callback_t cb, void *data) |
| Connects the callback to the end of the processing (in server side) of the request. More... | |
| void | connect_processing_finished_full (int request_id, uq_callback_t cb, void *data, uq_free_fn_t free_func) |
Static Public Member Functions | |
| static update_queue * | uq () |
| static void | drop () |
Private Member Functions | |
| update_queue ()=default | |
| struct update_queue_data * | data_new (void *data, uq_free_fn_t free_fn) |
| void | data_destroy (struct update_queue_data *dt) |
| void | update_unqueue () |
| void | push (uq_callback_t cb, struct update_queue_data *dt) |
| struct update_queue_data * | wq_data_extract (struct waiting_queue_data *wq_data) |
| void | wq_run_requests (waitingQueue &hash, int request_id) |
| void | wq_data_destroy (struct waiting_queue_data *wq_data) |
| struct waiting_queue_data * | wq_data_new (uq_callback_t callback, void *data, uq_free_fn_t free_fn) |
| void | wq_add_request (waitingQueue &hash, int request_id, uq_callback_t cb, void *data, uq_free_fn_t free_fn) |
Private Attributes | |
| QQueue< updatePair > | queue |
| waitingQueue | wq_processing_finished |
| bool | has_idle_cb = {false} |
Static Private Attributes | |
| static update_queue * | m_instance = nullptr |
Definition at line 39 of file update_queue.h.
| update_queue::~update_queue | ( | ) |
Definition at line 136 of file update_queue.cpp.
|
privatedefault |
Referenced by uq().
| void update_queue::add | ( | uq_callback_t | callback, |
| void * | data | ||
| ) |
Definition at line 207 of file update_queue.cpp.
Referenced by city_report_dialog_update(), city_report_dialog_update_city(), conn_list_dialog_update(), economy_report_dialog_update(), menus_init(), menus_update(), meswin_dialog_update(), multipliers_dialog_update(), players_dialog_update(), popup_city_dialog(), refresh_city_dialog(), science_report_dialog_update(), set_client_page(), unit_select_dialog_update(), and units_report_dialog_update().
| void update_queue::connect_processing_finished | ( | int | request_id, |
| uq_callback_t | cb, | ||
| void * | data | ||
| ) |
Definition at line 245 of file update_queue.cpp.
Referenced by client_start_server_and_set_page(), and fc_client::start_tutorial().
| void update_queue::connect_processing_finished_full | ( | int | request_id, |
| uq_callback_t | cb, | ||
| void * | data, | ||
| uq_free_fn_t | free_func | ||
| ) |
Definition at line 275 of file update_queue.cpp.
Referenced by do_disband_alternative().
| void update_queue::connect_processing_finished_unique | ( | int | request_id, |
| uq_callback_t | callback, | ||
| void * | data | ||
| ) |
Connects the callback to the end of the processing (in server side) of the request.
The callback will be called only once for this request.
Definition at line 257 of file update_queue.cpp.
Referenced by message_widget::msg_update().
|
private |
Definition at line 150 of file update_queue.cpp.
Referenced by init(), push(), update_unqueue(), and wq_data_destroy().
|
private |
Definition at line 139 of file update_queue.cpp.
Referenced by add(), and wq_data_new().
|
static |
Definition at line 55 of file update_queue.cpp.
Referenced by at_exit().
| bool update_queue::has_callback | ( | uq_callback_t | callback | ) |
Definition at line 213 of file update_queue.cpp.
Referenced by update_queue_is_switching_page().
| bool update_queue::has_callback_full | ( | uq_callback_t | cb, |
| const void ** | data, | ||
| uq_free_fn_t * | free_fn | ||
| ) |
Definition at line 222 of file update_queue.cpp.
| void update_queue::init | ( | ) |
Definition at line 121 of file update_queue.cpp.
Referenced by client_game_free(), client_main(), and ~update_queue().
| void update_queue::processing_finished | ( | int | request_id | ) |
Definition at line 160 of file update_queue.cpp.
Referenced by handle_processing_finished().
|
private |
Definition at line 184 of file update_queue.cpp.
Referenced by add(), and wq_run_requests().
|
private |
Definition at line 166 of file update_queue.cpp.
Referenced by push().
|
static |
Definition at line 48 of file update_queue.cpp.
Referenced by at_exit(), city_report_dialog_update(), city_report_dialog_update_city(), client_game_free(), client_main(), client_start_server_and_set_page(), conn_list_dialog_update(), do_disband_alternative(), economy_report_dialog_update(), handle_processing_finished(), menus_init(), menus_update(), meswin_dialog_update(), message_widget::msg_update(), multipliers_dialog_update(), players_dialog_update(), popup_city_dialog(), refresh_city_dialog(), science_report_dialog_update(), set_client_page(), fc_client::start_tutorial(), unit_select_dialog_update(), units_report_dialog_update(), and update_queue_is_switching_page().
|
private |
Definition at line 107 of file update_queue.cpp.
Referenced by connect_processing_finished(), connect_processing_finished_full(), and connect_processing_finished_unique().
|
private |
Definition at line 96 of file update_queue.cpp.
Referenced by init().
|
private |
Definition at line 63 of file update_queue.cpp.
Referenced by wq_run_requests().
|
private |
Definition at line 72 of file update_queue.cpp.
Referenced by wq_add_request().
|
private |
Definition at line 82 of file update_queue.cpp.
Referenced by processing_finished().
|
private |
Definition at line 43 of file update_queue.h.
Referenced by push(), and update_unqueue().
|
staticprivate |
Definition at line 40 of file update_queue.h.
|
private |
Definition at line 41 of file update_queue.h.
Referenced by has_callback(), has_callback_full(), init(), push(), and update_unqueue().
|
private |
Definition at line 42 of file update_queue.h.
Referenced by connect_processing_finished(), connect_processing_finished_full(), connect_processing_finished_unique(), init(), and processing_finished().