Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    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.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose we have the following:
What, exactly, are the guaranteed semantics of acquisition and release of the
exampleresource lock when thebeforeandaftermethods are invoked fortest? Is it:test, potentially allowing the code inbeforeandafterto race?The SharedResourcesDemo example from the guide seems to indicate the first interpretation is correct, because I think it's possible to show it having undesired behavior under other interpretations, but I'd rather be 100% sure.
Beta Was this translation helpful? Give feedback.
All reactions