更新时间:2021-03-18 GMT+08:00
分享

PopAllData

PopAllData读取所有队列头部数据。仅当所有队列头部都有数据时才读取成功,并删除队列头部数据。否则,返回失败但并不删除任何数据。

函数格式

template<typename T1>

bool MultiTypeQueue::PopAllData(std::shared_ptr<T1>& arg1);

template<typename T1, typename T2>

bool MultiTypeQueue::PopAllData(std::shared_ptr<T1>& arg1, std::shared_ptr<T2>& arg2);

......

template<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10, typename T11, typename T12, typename T13, typename T14, typename T15, typename T16>

bool MultiTypeQueue::PopAllData(std::shared_ptr<T1>& arg1,

std::shared_ptr<T2>& arg2, std::shared_ptr<T3>& arg3,

std::shared_ptr<T4>& arg4, std::shared_ptr<T5>& arg5,

std::shared_ptr<T6>& arg6, std::shared_ptr<T7>& arg7,

std::shared_ptr<T8>& arg8, std::shared_ptr<T9>& arg9,

std::shared_ptr<T16>& arg16)

参数说明

参数

说明

取值范围

arg1

队列函数指针

-

...

队列函数指针

-

arg16

队列函数指针

-

返回值

仅当所有队列头部都有数据时才读取成功并返回true,否则返回false。

分享:

    相关文档

    相关产品