pr7.5
This commit is contained in:
@@ -1,43 +1,3 @@
|
||||
# PR-7.5 — SLEEP Instruction
|
||||
|
||||
## Briefing
|
||||
|
||||
SLEEP suspends coroutine until a future tick.
|
||||
|
||||
## Target
|
||||
|
||||
Opcode:
|
||||
|
||||
`SLEEP duration_ticks`
|
||||
|
||||
Semantics:
|
||||
|
||||
* Remove coroutine from ready queue.
|
||||
* Set wake_tick.
|
||||
* Add to sleeping list.
|
||||
|
||||
At each FRAME_SYNC:
|
||||
|
||||
* Check sleeping coroutines.
|
||||
* Move ready ones to ready_queue.
|
||||
|
||||
## Checklist
|
||||
|
||||
* [ ] SLEEP implemented.
|
||||
* [ ] wake_tick respected.
|
||||
* [ ] Deterministic wake behavior.
|
||||
|
||||
## Tests
|
||||
|
||||
* Sleep and verify delayed execution.
|
||||
|
||||
## Junie Rules
|
||||
|
||||
You MAY add tick tracking.
|
||||
You MUST NOT rely on real wall clock time.
|
||||
|
||||
---
|
||||
|
||||
# PR-7.6 — Safepoint Integration
|
||||
|
||||
## Briefing
|
||||
|
||||
Reference in New Issue
Block a user