/* * util.h * * Simulation of Chandy-Lamport algorithm * * This file is a part of Distributed Systems term thesis * Department KIV, ZCU Plzen * Author: Martin Sloup, msloup@students.zcu.cz */ #ifndef UTIL_H_ #define UTIL_H_ #include #include #include #define fatal(message) \ do { perror(message); exit(EXIT_FAILURE); } while(false); #define warning(message) \ do { perror(message); } while(false); extern long double timeval2double(struct timeval *time); #endif /* UTIL_H_ */