GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript_threading.hpp File Reference
#include <unordered_map>
#include <thread>
#include <mutex>
#include "chaiscript_defines.hpp"
Include dependency graph for chaiscript_threading.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  chaiscript::detail::threading::Thread_Storage< T >
class  chaiscript::detail::threading::mutex
 STL class. More...
class  chaiscript::detail::threading::recursive_mutex
 STL class. More...

Namespaces

namespace  chaiscript
 Namespace chaiscript contains every API call that the average user will be concerned with.
namespace  chaiscript::detail
 Classes and functions reserved for internal use. Items in this namespace are not supported.
namespace  chaiscript::detail::threading

Typedefs

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

Detailed Description

This file contains code necessary for thread support in ChaiScript. If the compiler definition CHAISCRIPT_NO_THREADS is defined then thread safety is disabled in ChaiScript. This has the result that some code is faster, because mutex locks are not required. It also has the side effect that the chaiscript::ChaiScript object may not be accessed from more than one thread simultaneously.