Skip to content

Commit 3d33450

Browse files
committed
Remove '__alive' from public Scheduler interface
1 parent 4b7223b commit 3d33450

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

rt/src/SchedulerInterface.mts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ export interface SchedulerInterface {
55
// tailToTroupeFun_raw(f: any)
66
// stepThread();
77
resetScheduler();
8-
__alive: any;
9-
scheduleNewThreadAtLevel(fun: any, arg: any, pc: any, blockingTopLev: any);
8+
scheduleNewThreadAtLevel(fun: any, arg: any, pc: any, blockingTopLev: any);
109
scheduleThread(theThread: any);
1110
resumeLoopAsync();
1211
blockThread(__currentThread: Thread);

rt/src/builtins/monitor.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function BuiltinMonitors <TBase extends Constructor<UserRuntimeZero>> (Ba
1414

1515
// 1. find the thread corresponding to that tid
1616

17-
let t = this.runtime.__sched.__alive[tid.toString()];
17+
let t = this.runtime.__sched.getThread(tid);
1818
// 2. update the monitor state of that thread
1919

2020
let r = this.runtime.rt_mkuuid();

0 commit comments

Comments
 (0)