@ai-ecoverse/slicc-kernel 1.54.5 → 1.54.7
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 +2 -2
- package/dist/kernel-worker.js +4 -1
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +2 -4
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +4 -1
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +2 -4
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
|
@@ -1698,7 +1698,7 @@ function pollOneoff(deps, inPtr, outPtr, nsubs, neventsPtr) {
|
|
|
1698
1698
|
const { events, read: read2, write: write2 } = classify(deps.fds, subs);
|
|
1699
1699
|
let interrupted = false;
|
|
1700
1700
|
const earliest = subs.reduce((min, s) => Math.min(min, s.deadline), Infinity);
|
|
1701
|
-
const expired = () => performance.now()
|
|
1701
|
+
const expired = () => performance.now() >= earliest;
|
|
1702
1702
|
if (read2.length > 0 || write2.length > 0 || events.length === 0) {
|
|
1703
1703
|
do {
|
|
1704
1704
|
let timeoutMs = -1;
|
|
@@ -1720,7 +1720,7 @@ function pollOneoff(deps, inPtr, outPtr, nsubs, neventsPtr) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
const after = performance.now();
|
|
1722
1722
|
for (const s of subs) {
|
|
1723
|
-
if (s.type === EVENTTYPE.CLOCK && (interrupted || s.deadline <= after
|
|
1723
|
+
if (s.type === EVENTTYPE.CLOCK && (interrupted || s.deadline <= after)) {
|
|
1724
1724
|
events.push({ userdata: s.userdata, error: E.SUCCESS, type: s.type });
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
@@ -1728,12 +1728,10 @@ function pollOneoff(deps, inPtr, outPtr, nsubs, neventsPtr) {
|
|
|
1728
1728
|
mem.view().setUint32(neventsPtr, events.length, true);
|
|
1729
1729
|
return E.SUCCESS;
|
|
1730
1730
|
}
|
|
1731
|
-
var CLOCK_SLACK_MS;
|
|
1732
1731
|
var init_wasi_poll = __esm({
|
|
1733
1732
|
"src/process/wasi/wasi-poll.ts"() {
|
|
1734
1733
|
"use strict";
|
|
1735
1734
|
init_wasi_abi();
|
|
1736
|
-
CLOCK_SLACK_MS = 0.5;
|
|
1737
1735
|
}
|
|
1738
1736
|
});
|
|
1739
1737
|
|