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 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 ~SystemCondition (); | 74 ~SystemCondition (); |
75 | 75 |
76 /** | 76 /** |
77 * Set the value of the underlying condition. | 77 * Set the value of the underlying condition. |
78 * @param [in] condition value | 78 * @param [in] condition value |
79 */ | 79 */ |
80 void SetCondition (bool condition); | 80 void SetCondition (bool condition); |
81 | 81 |
82 /** | 82 /** |
83 * Get the value of the underlying condition. | 83 * Get the value of the underlying condition. |
| 84 * \returns the value of the condition |
84 */ | 85 */ |
85 bool GetCondition (void); | 86 bool GetCondition (void); |
86 | 87 |
87 /** | 88 /** |
88 * Release one thread if waiting for the condition to be true. If you want· | 89 * Release one thread if waiting for the condition to be true. If you want· |
89 * a waiting thread to return, you should have done a SetCondition (true) | 90 * a waiting thread to return, you should have done a SetCondition (true) |
90 * prior to calling. | 91 * prior to calling. |
91 */ | 92 */ |
92 void Signal (void); | 93 void Signal (void); |
93 | 94 |
(...skipping 21 matching lines...) Expand all Loading... |
115 private: | 116 private: |
116 /** The (system-dependent) implementation. */ | 117 /** The (system-dependent) implementation. */ |
117 SystemConditionPrivate * m_priv; | 118 SystemConditionPrivate * m_priv; |
118 }; | 119 }; |
119 | 120 |
120 } // namespace ns3 | 121 } // namespace ns3 |
121 | 122 |
122 #endif /* SYSTEM_CONDITION_H */ | 123 #endif /* SYSTEM_CONDITION_H */ |
123 | 124 |
124 | 125 |
OLD | NEW |