Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008 University of Washington | 3 * Copyright (c) 2008 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 */ | 17 */ |
18 | 18 |
19 #include <pthread.h> | 19 #include <pthread.h> |
20 #include <cerrno> // for ETIMEDOUT | 20 #include <cerrno> // for ETIMEDOUT |
21 #ifndef _WIN32 | 21 #ifndef _WIN32 |
Peter Barnes
2018/04/17 00:04:13
See comment on unix-fd-reader.cc
And this should
ammo6818-vandals.uidaho.edu
2018/05/02 05:06:32
Moved Windows declarations to a separate header fi
| |
22 #include <sys/time.h> | 22 #include <sys/time.h> |
23 #else | 23 #else |
24 typedef struct timeval { | 24 #include "win32-time.h" |
25 » long tv_sec; | |
26 » long tv_usec; | |
27 } timeval; | |
28 | |
29 struct timezone | |
30 { | |
31 » int tz_minuteswest; /* minutes W of Greenwich */ | |
32 » int tz_dsttime; /* type of dst correction */ | |
33 }; | |
34 | |
35 int gettimeofday(struct timeval *tv, struct timezone *tz); | |
36 #endif | 25 #endif |
37 | 26 |
38 #include "fatal-error.h" | 27 #include "fatal-error.h" |
39 #include "system-condition.h" | 28 #include "system-condition.h" |
40 #include "log.h" | 29 #include "log.h" |
41 | 30 |
42 | 31 |
43 /** | 32 /** |
44 * \file | 33 * \file |
45 * \ingroup thread | 34 * \ingroup thread |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 } | 256 } |
268 | 257 |
269 bool | 258 bool |
270 SystemCondition::TimedWait (uint64_t ns)· | 259 SystemCondition::TimedWait (uint64_t ns)· |
271 { | 260 { |
272 NS_LOG_FUNCTION (this << ns); | 261 NS_LOG_FUNCTION (this << ns); |
273 return m_priv->TimedWait (ns); | 262 return m_priv->TimedWait (ns); |
274 } | 263 } |
275 | 264 |
276 } // namespace ns3 | 265 } // namespace ns3 |
LEFT | RIGHT |