From dee7d8a2b2166bfa3ef4a1a92736a4e5cae2ff9f Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Wed, 6 Oct 2021 23:33:59 +0800 Subject: [PATCH] no message --- general/src/threadsafe/thread_safe_list.hpp | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 general/src/threadsafe/thread_safe_list.hpp diff --git a/general/src/threadsafe/thread_safe_list.hpp b/general/src/threadsafe/thread_safe_list.hpp new file mode 100644 index 0000000..763b56f --- /dev/null +++ b/general/src/threadsafe/thread_safe_list.hpp @@ -0,0 +1,23 @@ +/* + * @Author: caiyuzheng + * @Date: 2021-10-06 23:05:26 + * @LastEditTime: 2021-10-06 23:24:08 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: \generallib\general\src\threadsafe\thread_safe_list.h + */ +#pragma once + +#include +#include + +using namespace std; +template +class SafeList{ +public: + SafeList(T *); + +private: + std::mutex m_mux; + std::list m_data; +} \ No newline at end of file