1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
13 * Szabo, Janos Zoltan – initial implementation
15 ******************************************************************************/
19 #include <sys/types.h>
23 class Fd_Event_Handler;
26 static boolean else_branch_found; ///< [else] branch of \c alt was reached
27 static double alt_begin; ///< The time when the snapshot was taken.
30 static void initialize();
31 static void check_fd_setsize();
32 static void terminate();
33 static void else_branch_reached();
34 static double time_now();
35 static inline double get_alt_begin() { return alt_begin; }
36 static void take_new(boolean block_execution);
37 static void block_for_sending(int send_fd, Fd_Event_Handler * handler = 0);