@ai-ecoverse/slicc-kernel 1.93.3 → 1.94.0
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.
- package/README.md +4 -4
- package/dist/kernel-worker.js +85 -34
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +7 -4
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +104 -38
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +7 -4
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
|
@@ -1263,12 +1263,15 @@ function useLocalClock(sab) {
|
|
|
1263
1263
|
if (!local) return;
|
|
1264
1264
|
localSab = sab;
|
|
1265
1265
|
localStart = epochMicros();
|
|
1266
|
-
const wait2 = (typed, index3, value2, timeout) => localWait(
|
|
1266
|
+
const wait2 = (typed, index3, value2, timeout) => localWait(
|
|
1267
|
+
() => rawWait(typed, index3, value2, timeout),
|
|
1268
|
+
timeout !== 0 && Atomics.load(typed, index3) === value2
|
|
1269
|
+
);
|
|
1267
1270
|
Atomics.wait = wait2;
|
|
1268
1271
|
}
|
|
1269
|
-
function localWait(wait2) {
|
|
1272
|
+
function localWait(wait2, blocks = true) {
|
|
1270
1273
|
const clock = local;
|
|
1271
|
-
if (!clock) return wait2();
|
|
1274
|
+
if (!clock || !blocks) return wait2();
|
|
1272
1275
|
const start2 = BigInt(epochMicros());
|
|
1273
1276
|
const idle = Atomics.load(clock, IDLE);
|
|
1274
1277
|
Atomics.store(clock, IDLE, idle - start2);
|
|
@@ -4022,7 +4025,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
4022
4025
|
var init_version = __esm({
|
|
4023
4026
|
"src/version.ts"() {
|
|
4024
4027
|
"use strict";
|
|
4025
|
-
KERNEL_VERSION = true ? "1.
|
|
4028
|
+
KERNEL_VERSION = true ? "1.94.0" : "0.0.0-dev";
|
|
4026
4029
|
OS_RELEASE = "6.0.0-slicc";
|
|
4027
4030
|
}
|
|
4028
4031
|
});
|