proxygen
SpinLockTest.cpp File Reference
#include <folly/SpinLock.h>
#include <folly/Random.h>
#include <thread>
#include <folly/portability/Asm.h>
#include <folly/portability/GTest.h>

Go to the source code of this file.

Functions

 TEST (SpinLock, Correctness)
 
 TEST (SpinLock, TryLock)
 

Function Documentation

TEST ( SpinLock  ,
Correctness   
)

Definition at line 138 of file SpinLockTest.cpp.

138  {
139  correctnessTest<folly::SpinLock>();
140 }
TEST ( SpinLock  ,
TryLock   
)

Definition at line 141 of file SpinLockTest.cpp.

141  {
142  trylockTest<folly::SpinLock>();
143 }