Why there's a SendWrapper in compio-runtime::runtime::RunnableQueue
              
              #366
            
            
              
                Unanswered
              
          
                  
                    
                      SaltyKitkat
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments 1 reply
-
| Ok, I think I got it. | 
Beta Was this translation helpful? Give feedback.
                  
                    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  | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
The field
local_runnablesis wrapped in aSendWrapper, which makesRunnableQueuebeSend + Sync.But it seems that
RunnableQueueis only referenced inRuntime, which is notSendnorSync?So why do we need this sendwrapper?
ps: I tried to make the sendwrapper
!Send + !Sync, butcompioseems compiles with no error.Beta Was this translation helpful? Give feedback.
All reactions