LeechCraft 0.6.70-18808-g3467692359
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::ThreadSafetyExtension< typename > Struct Template Reference

#include "threadsafety.h"

Collaboration diagram for LC::Util::ThreadSafetyExtension< typename >:

Public Member Functions

void lock () const
void unlock () const

Public Attributes

std::mutex Mutex_

Static Public Attributes

static constexpr bool IsLockingHandler = true
static constexpr bool IsThreadSafe = true

Detailed Description

template<typename>
struct LC::Util::ThreadSafetyExtension< typename >

Definition at line 18 of file threadsafety.h.

Member Function Documentation

◆ lock()

template<typename>
void LC::Util::ThreadSafetyExtension< typename >::lock ( ) const
inline

Definition at line 25 of file threadsafety.h.

References Mutex_.

◆ unlock()

template<typename>
void LC::Util::ThreadSafetyExtension< typename >::unlock ( ) const
inline

Definition at line 30 of file threadsafety.h.

References Mutex_.

Member Data Documentation

◆ IsLockingHandler

template<typename>
bool LC::Util::ThreadSafetyExtension< typename >::IsLockingHandler = true
staticconstexpr

Definition at line 20 of file threadsafety.h.

◆ IsThreadSafe

template<typename>
bool LC::Util::ThreadSafetyExtension< typename >::IsThreadSafe = true
staticconstexpr

Definition at line 21 of file threadsafety.h.

◆ Mutex_

template<typename>
std::mutex LC::Util::ThreadSafetyExtension< typename >::Mutex_
mutable

Definition at line 23 of file threadsafety.h.

Referenced by lock(), and unlock().


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.18808.g3467692359-build/leechcraft-0.6.70-18808-g3467692359/src/util/threads/coro/threadsafety.h