concurrent_queue::unsafe_size 方法

返回队列中的项数。此方法不是并发安全方法。

size_type unsafe_size() const;

返回值

并发队列的大小。

备注

unsafe_size 不是并发安全的,并且可能产生不正确的结果,前提是并发调用时同时调用方法 pushtry_popempty

要求

**标头:**concurrent_queue.h

命名空间: 并发

请参见

参考

concurrent_queue 类