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) 2005, 2009 INRIA | 3 * Copyright (c) 2005, 2009 INRIA |
4 * Copyright (c) 2009 MIRKO BANCHI | 4 * Copyright (c) 2009 MIRKO BANCHI |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 WifiMacHeader m_header; //!< Wifi MAC header associated with the packet | 106 WifiMacHeader m_header; //!< Wifi MAC header associated with the packet |
107 Time m_tstamp; //!< timestamp when the packet arrived at the que
ue | 107 Time m_tstamp; //!< timestamp when the packet arrived at the que
ue |
108 }; | 108 }; |
109 | 109 |
110 | 110 |
111 // The following explicit template instantiation declaration prevents modules | 111 // The following explicit template instantiation declaration prevents modules |
112 // including this header file from implicitly instantiating Queue<WifiMacQueueIt
em>. | 112 // including this header file from implicitly instantiating Queue<WifiMacQueueIt
em>. |
113 // This would cause python examples using wifi to crash at runtime with the | 113 // This would cause python examples using wifi to crash at runtime with the |
114 // following error message: "Trying to allocate twice the same uid: | 114 // following error message: "Trying to allocate twice the same uid: |
115 // ns3::Queue<WifiMacQueueItem>" | 115 // ns3::Queue<WifiMacQueueItem>" |
116 #ifndef _WIN32 | |
117 extern template class Queue<WifiMacQueueItem>; | 116 extern template class Queue<WifiMacQueueItem>; |
118 #else | |
119 template class Queue<WifiMacQueueItem>; | |
120 #endif | |
121 | 117 |
122 | 118 |
123 } //namespace ns3 | 119 } //namespace ns3 |
124 | 120 |
125 #endif /* WIFI_MAC_QUEUE_ITEM_H */ | 121 #endif /* WIFI_MAC_QUEUE_ITEM_H */ |
LEFT | RIGHT |