Last active
May 19, 2020 12:41
-
-
Save haoyu-c/9eede2c8585359202abf6770ff500dd9 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
template <typename RefCountBits> | |
class RefCounts { | |
std::atomic<RefCountBits> refCounts; | |
void incrementSlow(RefCountBits oldbits, uint32_t inc) SWIFT_CC(PreserveMost); | |
void incrementNonAtomicSlow(RefCountBits oldbits, uint32_t inc); | |
bool tryIncrementSlow(RefCountBits oldbits); | |
bool tryIncrementNonAtomicSlow(RefCountBits oldbits); | |
void incrementUnownedSlow(uint32_t inc); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment