Add Sync.h

Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
This commit is contained in:
Lucca Jiménez Könings 2024-05-15 12:57:08 +02:00
parent bcd4b5a235
commit a5e3fc8fb9
No known key found for this signature in database

9
include/Sync.h Normal file
View File

@ -0,0 +1,9 @@
#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>;