ChaiScript
Classes | Typedefs
chaiscript::detail::threading Namespace Reference

If threading is enabled, then this namespace contains std thread classes. More...

Classes

class  Thread_Storage
 Typesafe thread specific storage. More...
 

Typedefs

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

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.