proxygen
MockAtom< T > Struct Template Reference
Inheritance diagram for MockAtom< T >:

Public Member Functions

 MockAtom (T init=0)
 
 MOCK_CONST_METHOD2 (futexWait, FutexResult(uint32_t, uint32_t))
 
 MOCK_CONST_METHOD3 (futexWaitUntil, FutexResult(uint32_t, const MockClock::time_point &, uint32_t))
 

Detailed Description

template<typename T>
struct MockAtom< T >

MockedAtom gives us a way to select a mocked Futex implementation inside Baton, even though the atom itself isn't exercised by the mocked futex

Futex<MockAtom> is our mocked futex implementation. Note that the method signatures differ from the real Futex because we have elided unused default params and collapsed templated methods into the used type

Definition at line 87 of file MemoryIdlerTest.cpp.

Constructor & Destructor Documentation

template<typename T >
MockAtom< T >::MockAtom ( T  init = 0)
inlineexplicit

Member Function Documentation

template<typename T >
MockAtom< T >::MOCK_CONST_METHOD2 ( futexWait  ,
FutexResult(uint32_t, uint32_t  
)
template<typename T >
MockAtom< T >::MOCK_CONST_METHOD3 ( futexWaitUntil  ,
FutexResult(uint32_t, const MockClock::time_point &, uint32_t  
)

The documentation for this struct was generated from the following file: