no message
parent
8d15417c4e
commit
dee7d8a2b2
|
@ -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 <list>
|
||||
#include <mutex>
|
||||
|
||||
using namespace std;
|
||||
template <class T>
|
||||
class SafeList{
|
||||
public:
|
||||
SafeList(T *);
|
||||
|
||||
private:
|
||||
std::mutex m_mux;
|
||||
std::list<T> m_data;
|
||||
}
|
Loading…
Reference in New Issue