Why there's a SendWrapper in compio-runtime::runtime::RunnableQueue
#366
|
The field ps: I tried to make the sendwrapper |
Answered by
Berrysoft
Dec 8, 2024
Replies: 2 comments 1 reply
|
Ok, I think I got it. |
0 replies
|
Well, yes, it's mainly for validity. The schedule closure will check if the current thread is the same thread as the runtime, so the |
1 reply
Answer selected by
Berrysoft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, yes, it's mainly for validity. The schedule closure will check if the current thread is the same thread as the runtime, so the
RefCellwon't be accessed in other threads.