Lucca Jiménez Könings a5e3fc8fb9
Add Sync.h
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-15 12:57:08 +02:00

10 lines
244 B
C++

#pragma once
#include <boost/thread/synchronized_value.hpp>
#include <mutex>
/// This header provides convenience aliases for synchronization primitives.
template <typename T>
using Sync = boost::synchronized_value<T, std::recursive_mutex>;