You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: spec/index.html
+26-24
Original file line number
Diff line number
Diff line change
@@ -2288,31 +2288,33 @@ <h1>
2288
2288
1. Perform EnterCriticalSection(_WL_).
2289
2289
1. If _mutex_.[[IsLockedBy]] is ~empty~, then
2290
2290
1. Set _mutex_.[[IsLockedBy]] to _thisAgent_.
2291
-
1. Perform LeaveCriticalSection(_WL_).
2292
-
1. Return ~acquired~.
2293
-
1. If _mutex_.[[IsLockedBy]] is _thisAgent_, then
2294
-
1. Return ~deadlock~.
2295
-
1. If _tMillis_ is 0, return ~timed-out~.
2296
-
1. Let _now_ be the time value (UTC) identifying the current time.
2297
-
1. Let _additionalTimeout_ be an implementation-defined non-negative mathematical value.
2298
-
1. Let _timeoutTime_ be ℝ(_now_) + _tMillis_ + _additionalTimeout_.
2299
-
1. NOTE: When _tMillis_ is +∞, _timeoutTime_ is also +∞.
2300
-
1. Let _done_ be *false*.
2301
-
1. Repeat, while _done_ is *false*,
2302
-
1. Let _waiterRecord_ be a new Waiter Record { [[AgentSignifier]]: _thisAgent_, [[PromiseCapability]]: ~blocking~, [[TimeoutTime]]: _timeoutTime_, [[Result]]: *"ok"* }.
1. Else if _waiterRecord_.[[Result]] is *"timed-out"*, then
2310
-
1. Set _done_ to *true*.
2291
+
1. Let _result_ be ~acquired~.
2292
+
1. Else if _mutex_.[[IsLockedBy]] is _thisAgent_, then
2293
+
1. Let _result_ be ~deadlock~.
2294
+
1. Else,
2295
+
1. If _tMillis_ is 0, return ~timed-out~.
2296
+
1. Let _now_ be the time value (UTC) identifying the current time.
2297
+
1. Let _additionalTimeout_ be an implementation-defined non-negative mathematical value.
2298
+
1. Let _timeoutTime_ be ℝ(_now_) + _tMillis_ + _additionalTimeout_.
2299
+
1. NOTE: When _tMillis_ is +∞, _timeoutTime_ is also +∞.
2300
+
1. Let _done_ be *false*.
2301
+
1. Repeat, while _done_ is *false*,
2302
+
1. Let _waiterRecord_ be a new Waiter Record { [[AgentSignifier]]: _thisAgent_, [[PromiseCapability]]: ~blocking~, [[TimeoutTime]]: _timeoutTime_, [[Result]]: *"ok"* }.
0 commit comments