Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | List of all members
AnnotatedMixin< PARENT > Class Template Reference

Template mixin that adds -Wthread-safety locking annotations to a subset of the mutex API. More...

#include <sync.h>

Inheritance diagram for AnnotatedMixin< PARENT >:
[legend]
Collaboration diagram for AnnotatedMixin< PARENT >:
[legend]

Public Member Functions

void lock () EXCLUSIVE_LOCK_FUNCTION()
 
void unlock () UNLOCK_FUNCTION()
 
bool try_lock () EXCLUSIVE_TRYLOCK_FUNCTION(true)
 

Detailed Description

template<typename PARENT>
class AnnotatedMixin< PARENT >

Template mixin that adds -Wthread-safety locking annotations to a subset of the mutex API.

Definition at line 54 of file sync.h.

Member Function Documentation

template<typename PARENT>
void AnnotatedMixin< PARENT >::lock ( )
inline

Definition at line 57 of file sync.h.

template<typename PARENT>
bool AnnotatedMixin< PARENT >::try_lock ( )
inline

Definition at line 67 of file sync.h.

template<typename PARENT>
void AnnotatedMixin< PARENT >::unlock ( )
inline

Definition at line 62 of file sync.h.


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