MCPcopy Create free account
hub / github.com/acl-dev/acl / pop

Method pop

lib_acl_cpp/include/acl_cpp.cn/stdlib/mbox.hpp:89–91  ·  view source on GitHub ↗

* ������Ϣ���� * @param ms {int} >= 0 ʱ���ö��ȴ���ʱʱ��(���뼶��)������ * ��Զ�ȴ�ֱ��������Ϣ�������� * @param success {bool*} �������ڸ���ȷ���������Ƿ�ɹ� * @return {T*} �� NULL ��ʾ����һ����Ϣ����Ϊ NULL ʱ������ͨ�� * success �����ķ���ֵ�������Ƿ�ɹ� * @override */

Source from the content-addressed store, hash-verified

87 * @override
88 */
89 T* pop(int ms = -1, bool* success = NULL) {
90 return (T*) mbox_read(mbox_, ms, success);
91 }
92
93 // @override
94 size_t pop(std::vector<T*>& out, size_t max, int ms) {

Callers 1

runMethod · 0.45

Calls 2

mbox_readFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected