CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Atomic.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include <atomic>
11
12namespace CeresEngine {
16 template<typename T> using Atomic = std::atomic<T>;
17
21 using AtomicFlag = std::atomic_flag;
22
23#if defined(__cpp_lib_atomic_ref)
31 template<typename T> using AtomicRef = std::atomic_ref<T>;
32#endif
33} // namespace CeresEngine
Definition Application.hpp:19
std::atomic< T > Atomic
The Atomic template defines an atomic type.
Definition Atomic.hpp:16
std::atomic_flag AtomicFlag
AtomicFlag is an atomic boolean type.
Definition Atomic.hpp:21
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25