MCPcopy Create free account
hub / github.com/catboost/catboost / SpinLockPause

Function SpinLockPause

util/system/spinlock.h:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51static inline void SpinLockPause() {
52#if defined(__GNUC__)
53 #if defined(_i386_) || defined(_x86_64_)
54 __asm __volatile("pause");
55 #elif defined(_arm64_)
56 __asm __volatile("yield" ::
57 : "memory");
58 #endif
59#endif
60}
61
62/*
63 * You should almost always use TAdaptiveLock instead of TSpinLock

Callers 8

AcquireMethod · 0.85
OnMakeRequestMethod · 0.85
EnqueueMethod · 0.85
EnqueueMethod · 0.85
EnqueueMethod · 0.85
WaitAllReadersMethod · 0.85
SleepMethod · 0.85
AcquireMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected