Left: | ||
Right: |
OLD | NEW |
---|---|
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 | |
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
| |
21 #include <sys/time.h> | 22 #include <sys/time.h> |
23 #else | |
24 typedef struct timeval { | |
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 | |
22 | 37 |
23 #include "fatal-error.h" | 38 #include "fatal-error.h" |
24 #include "system-condition.h" | 39 #include "system-condition.h" |
25 #include "log.h" | 40 #include "log.h" |
26 | 41 |
27 | 42 |
28 /** | 43 /** |
29 * \file | 44 * \file |
30 * \ingroup thread | 45 * \ingroup thread |
31 * ns3::SystemCondition and ns3::SystemConditionPrivate implementations. | 46 * ns3::SystemCondition and ns3::SystemConditionPrivate implementations. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
252 } | 267 } |
253 | 268 |
254 bool | 269 bool |
255 SystemCondition::TimedWait (uint64_t ns)· | 270 SystemCondition::TimedWait (uint64_t ns)· |
256 { | 271 { |
257 NS_LOG_FUNCTION (this << ns); | 272 NS_LOG_FUNCTION (this << ns); |
258 return m_priv->TimedWait (ns); | 273 return m_priv->TimedWait (ns); |
259 } | 274 } |
260 | 275 |
261 } // namespace ns3 | 276 } // namespace ns3 |
OLD | NEW |