Skip to content

Commit 1fdd55f

Browse files
committed
comment spelling/formatting
[git-p4: depot-paths = "//dev/main.cpp/": change = 111814]
1 parent 6047e30 commit 1fdd55f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

include/private/coherence/native/windows/WindowsCondition.hpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
#ifndef COH_WINDOWS_CONDITION_HPP
88
#define COH_WINDOWS_CONDITION_HPP
@@ -28,7 +28,7 @@ using namespace coherence::native;
2828
* Windows implementation of Condition.
2929
*
3030
* This implementation utilizes Windows Events which are not subject to the
31-
* suprious wakeup problem. This implementation however can produce spurious
31+
* spurious wakeup problem. This implementation however can produce spurious
3232
* wakeups, and users of Condition must account for them.
3333
*
3434
* @author 2007.12.10 mf
@@ -54,7 +54,7 @@ class COH_EXPORT WindowsCondition
5454
COH_ENSURE(m_eventEnd != NULL);
5555

5656
// TODO - REMOVE THIS STATEMENT
57-
// test if it is an error to reset a unsignaled event
57+
// test if it is an error to reset an unsignaled event
5858
// if it is we need to adjust some code
5959
COH_ENSURE(ResetEvent(m_eventBegin) != FALSE);
6060
}
@@ -101,7 +101,7 @@ class COH_EXPORT WindowsCondition
101101
<< nResult);
102102
}
103103

104-
// Note: cleanup order intetionally identical to acquistion order
104+
// Note: cleanup order intentionally identical to acquisition order
105105
if (atomicWaiters.adjust(-1) == m_cAllowed)
106106
{
107107
// all remaining threads are allowed to remain sleeping
@@ -144,7 +144,7 @@ class COH_EXPORT WindowsCondition
144144
/**
145145
* Notify a specific number of threads.
146146
*
147-
* @param cThreads the nubmer of threads to notify
147+
* @param cThreads the number of threads to notify
148148
*/
149149
void notify(bool fNotifyAll)
150150
{
@@ -171,24 +171,24 @@ class COH_EXPORT WindowsCondition
171171
// open by a thread timing out
172172
COH_ENSURE(ResetEvent(eventEnd) != FALSE);
173173

174-
// ensure that no thread timesout between these two lines
174+
// ensure that no thread timed out between these two lines
175175
m_cAllowed = fNotifyAll ? 0 : cWaiters - 1;
176176
int32_t cCurr = atomicWaiters.get();
177177

178-
// validate that no thread timedout
178+
// validate that no thread timed out
179179
if (cCurr == cWaiters)
180180
{
181-
// no threads timedout
181+
// no threads timed out
182182
break;
183183
}
184184
else if (cCurr == 0)
185185
{
186-
// all waiting threads timedout
186+
// all waiting threads timed out
187187
return;
188188
}
189189
else if (cCurr < cWaiters)
190190
{
191-
// some but not all waiting threads timedout
191+
// some but not all waiting threads timed out
192192
// try again
193193
cWaiters = cCurr;
194194
}
@@ -209,7 +209,7 @@ class COH_EXPORT WindowsCondition
209209
WAIT_OBJECT_0);
210210

211211
// though likely already reset by the last thread to wake up
212-
// there is a slight chance that all threads timedout just
212+
// there is a slight chance that all threads timed out just
213213
// before we did SetEvent, in which case they could have call
214214
// ResetEvent before we did our SetEvent, and we want to ensure
215215
// we leave the Event reset

0 commit comments

Comments
 (0)