diff options
Diffstat (limited to '')
-rw-r--r-- | src/safe/defaulttypes.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/safe/defaulttypes.h b/src/safe/defaulttypes.h new file mode 100644 index 0000000..1cb2273 --- /dev/null +++ b/src/safe/defaulttypes.h @@ -0,0 +1,23 @@ +/** + * @file defaulttypes.h + * @author L.-C. C. + * @brief + * @version 0.1 + * @date 2020-01-29 + * + * @copyright Copyright (c) 2020 + * + */ + +#pragma once + +#include <mutex> + +namespace safe +{ + using DefaultMutex = std::mutex; + template<typename MutexType> + using DefaultReadOnlyLock = std::lock_guard<MutexType>; + template<typename MutexType> + using DefaultReadWriteLock = std::lock_guard<MutexType>; +} // namespace safe |