/* [<][>][^][v][top][bottom][index][help] */
1 /****************************************************************************
2 * Copyright (C) 2006-2010 by Jason Ansel, Kapil Arya, and Gene Cooperman *
3 * jansel@csail.mit.edu, kapil@ccs.neu.edu, gene@ccs.neu.edu *
4 * *
5 * This file is part of the dmtcp/src module of DMTCP (DMTCP:dmtcp/src). *
6 * *
7 * DMTCP:dmtcp/src is free software: you can redistribute it and/or *
8 * modify it under the terms of the GNU Lesser General Public License as *
9 * published by the Free Software Foundation, either version 3 of the *
10 * License, or (at your option) any later version. *
11 * *
12 * DMTCP:dmtcp/src is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU Lesser General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License along with DMTCP:dmtcp/src. If not, see *
19 * <http://www.gnu.org/licenses/>. *
20 ****************************************************************************/
21
22 #pragma once
23 #ifndef TIMER_WRAPPERS_H
24 #define TIMER_WRAPPERS_H
25
26 #include <signal.h>
27 #include <time.h>
28 #include "dmtcp.h"
29
30 #define _real_timer_create NEXT_FNC(timer_create)
31 #define _real_timer_delete NEXT_FNC(timer_delete)
32 #define _real_timer_gettime NEXT_FNC(timer_gettime)
33 #define _real_timer_settime NEXT_FNC(timer_settime)
34 #define _real_timer_getoverrun NEXT_FNC(timer_getoverrun)
35
36 #define _real_clock_getcpuclockid NEXT_FNC(clock_getcpuclockid)
37 #define _real_pthread_getcpuclockid NEXT_FNC(pthread_getcpuclockid)
38 #define _real_clock_getres NEXT_FNC(clock_getres)
39 #define _real_clock_gettime NEXT_FNC(clock_gettime)
40 #define _real_clock_settime NEXT_FNC(clock_settime)
41
42 #define _real_pthread_mutex_lock NEXT_FNC(pthread_mutex_lock)
43 #define _real_pthread_mutex_unlock NEXT_FNC(pthread_mutex_unlock)
44
45 int timer_create_sigev_thread(clockid_t clock_id,
46 struct sigevent *evp,
47 timer_t *timerid,
48 struct sigevent *sevOut);
49
50 #endif