GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript::detail::threading Namespace Reference

Classes

class  Thread_Storage
class  mutex
 STL class. More...
class  recursive_mutex
 STL class. More...

Typedefs

template<typename T>
using unique_lock = std::unique_lock<T>
template<typename T>
using shared_lock = std::unique_lock<T>
template<typename T>
using lock_guard = std::lock_guard<T>
using shared_mutex = std::mutex

Detailed Description

If threading is enabled, then this namespace contains std thread classes. If threading is not enabled, then stubbed in wrappers that do nothing are provided. This allows us to avoid #ifdef code in the sections that need thread safety.

Typedef Documentation

◆ lock_guard

template<typename T>
using chaiscript::detail::threading::lock_guard = std::lock_guard<T>

◆ shared_lock

template<typename T>
using chaiscript::detail::threading::shared_lock = std::unique_lock<T>

◆ shared_mutex

◆ unique_lock

template<typename T>
using chaiscript::detail::threading::unique_lock = std::unique_lock<T>