List模板改名为ArrayList

This commit is contained in:
2025-04-23 00:21:59 +08:00
parent cf494b4f86
commit a7b0cb6112
18 changed files with 55 additions and 53 deletions

View File

@@ -15,7 +15,7 @@ namespace hgl
{
protected:
List<T *> data_list[2];
ArrayList<T *> data_list[2];
int post_index,recv_index;
int recv_offset;

View File

@@ -64,7 +64,7 @@ namespace hgl
operator S<T> &(){return proc_list;}
};//template<typename T> class SwapColl
template<typename T> using SwapList=SwapColl<T,List>; ///<安全交换列表
template<typename T> using SwapList=SwapColl<T,ArrayList>; ///<安全交换列表
template<typename T> using SwapSet=SwapColl<T,Set>; ///<安全交换集合
/**
@@ -150,7 +150,7 @@ namespace hgl
operator S<T> &(){return proc_list;}
};//template<typename T> class SemSwapColl
template<typename T> using SemSwapList=SemSwapColl<T,List>; ///<安全信号交换列表
template<typename T> using SemSwapList=SemSwapColl<T,ArrayList>; ///<安全信号交换列表
template<typename T> using SemSwapSet=SemSwapColl<T,Set>; ///<安全信号交换集合
}//namespace hgl
#endif//HGL_THREAD_SWAP_LIST_INCLUDE

View File

@@ -54,7 +54,7 @@ namespace hgl
{
public:
using WorkList=List<W *>;
using WorkList=ArrayList<W *>;
private:
@@ -214,7 +214,7 @@ namespace hgl
{
protected:
using WorkList=List<W *>;
using WorkList=ArrayList<W *>;
WorkProc<W> *work_proc;