public void enqueue_packet(CPacket message, CServer server) { lock (this.operation_lock) { this.operations_queue.Enqueue(message); this.loop_event.Set(); } }
private void on_connected_server(CUserToken server_token) { lock (serverlist) { IPeer server = new CServer(server_token); serverlist.Add(server); } client_main = new CClientProcess(); on_connectedHandler(); }