Skip to content

Commit

Permalink
doc: add new doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed Jun 16, 2024
1 parent d1a30fe commit 6b9d69d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/for-async-runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# For Async Runtime Design

> This is a design for async runtime.
Design a TrapFrom::into_user() Then it will save the registers and use the pointer.

Make a struct ThreadToken to pointer the original sp that contains the registers.

Add a ThreadToken::restore() method to the original position, and it can return the custom value to the original position.

0 comments on commit 6b9d69d

Please sign in to comment.