Created
March 13, 2017 01:57
-
-
Save jarcode-foss/61a371f6d79bdd554ac71866c3770a55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Slot<T> { | |
state: AtomicUsize, /* request state, written by the tracker */ | |
occupied: AtomicBool, /* written by the owner */ | |
data: T /* valid only if occupied.load(...) == true */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment