dl
dl::ListMultiThread< T > 模板类 参考

多线程队列 更多...

#include <dl_list_mt.h>

Public 成员函数

bool PopFront (T &a)
 取第一个,顺序通过 SetQueueMode 指定,默认FIFO
 
void Add (const T &buf)
 添加
 
void Add (T &&buf)
 添加
 
size_t GetSize ()
 当前数量
 
bool IsEmpty ()
 
 
void Clear ()
 清除
 
void SetQueueMode (QueueMode mode)
 
 ListMultiThread (QueueMode mode=QueueMode::FIFO)
 

详细描述

template<typename T>
class dl::ListMultiThread< T >

多线程队列

在文件 dl_list_mt.h22 行定义.

构造及析构函数说明

◆ ListMultiThread()

template<typename T>
dl::ListMultiThread< T >::ListMultiThread ( QueueMode mode = QueueMode::FIFO)
inline

在文件 dl_list_mt.h91 行定义.

成员函数说明

◆ Add() [1/2]

template<typename T>
void dl::ListMultiThread< T >::Add ( const T & buf)
inline

添加

在文件 dl_list_mt.h45 行定义.

◆ Add() [2/2]

template<typename T>
void dl::ListMultiThread< T >::Add ( T && buf)
inline

添加

在文件 dl_list_mt.h54 行定义.

◆ Clear()

template<typename T>
void dl::ListMultiThread< T >::Clear ( )
inline

清除

在文件 dl_list_mt.h79 行定义.

◆ GetSize()

template<typename T>
size_t dl::ListMultiThread< T >::GetSize ( )
inline

当前数量

在文件 dl_list_mt.h63 行定义.

◆ IsEmpty()

template<typename T>
bool dl::ListMultiThread< T >::IsEmpty ( )
inline

在文件 dl_list_mt.h71 行定义.

◆ PopFront()

template<typename T>
bool dl::ListMultiThread< T >::PopFront ( T & a)
inline

取第一个,顺序通过 SetQueueMode 指定,默认FIFO

返回值
成功返回true,并弹出

在文件 dl_list_mt.h29 行定义.

◆ SetQueueMode()

template<typename T>
void dl::ListMultiThread< T >::SetQueueMode ( QueueMode mode)
inline

在文件 dl_list_mt.h86 行定义.


该类的文档由以下文件生成: