Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

concurrent_queue::unsafe_size Method

Returns the number of items in the queue. This method is not concurrency-safe.

size_type unsafe_size() const;

The size of the concurrent queue.

unsafe_size is not concurrency-safe and can produce incorrect results if called concurrently with calls to the methods push, try_pop, and empty.

Header: concurrent_queue.h

Namespace: concurrency

© 2015 Microsoft