MCPcopy Create free account
hub / github.com/aburch/simutrans / clear_command_queue

Function clear_command_queue

dataobj/network.cc:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42address_list_t blacklist;
43
44void clear_command_queue()
45{
46 while(!received_command_queue.empty()) {
47 network_command_t *nwc = received_command_queue.remove_first();
48 if (nwc) {
49 delete nwc;
50 }
51 }
52}
53
54#ifdef _WIN32
55#define RET_ERR_STR { FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM,NULL,WSAGetLastError(),MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),err_str,sizeof(err_str),NULL); err = err_str; return INVALID_SOCKET; }

Callers 5

ladenMethod · 0.85
network_disconnectMethod · 0.85
network_init_serverFunction · 0.85
network_reset_serverFunction · 0.85
network_core_shutdownFunction · 0.85

Calls 2

emptyMethod · 0.45
remove_firstMethod · 0.45

Tested by

no test coverage detected