@ai-ecoverse/slicc-kernel 1.93.3 → 1.94.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209,12 +209,15 @@ function useLocalClock(sab) {
209
209
  if (!local) return;
210
210
  localSab = sab;
211
211
  localStart = epochMicros();
212
- const wait2 = (typed, index3, value2, timeout) => localWait(() => rawWait(typed, index3, value2, timeout));
212
+ const wait2 = (typed, index3, value2, timeout) => localWait(
213
+ () => rawWait(typed, index3, value2, timeout),
214
+ timeout !== 0 && Atomics.load(typed, index3) === value2
215
+ );
213
216
  Atomics.wait = wait2;
214
217
  }
215
- function localWait(wait2) {
218
+ function localWait(wait2, blocks = true) {
216
219
  const clock = local;
217
- if (!clock) return wait2();
220
+ if (!clock || !blocks) return wait2();
218
221
  const start2 = BigInt(epochMicros());
219
222
  const idle = Atomics.load(clock, IDLE);
220
223
  Atomics.store(clock, IDLE, idle - start2);
@@ -4559,7 +4562,7 @@ var KERNEL_VERSION, OS_RELEASE;
4559
4562
  var init_version = __esm({
4560
4563
  "src/version.ts"() {
4561
4564
  "use strict";
4562
- KERNEL_VERSION = true ? "1.93.3" : "0.0.0-dev";
4565
+ KERNEL_VERSION = true ? "1.94.1" : "0.0.0-dev";
4563
4566
  OS_RELEASE = "6.0.0-slicc";
4564
4567
  }
4565
4568
  });