Why there's a SendWrapper in compio-runtime::runtime::RunnableQueue
#366
-
|
The field ps: I tried to make the sendwrapper |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Ok, I think I got it. |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
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.