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