https://www.liblfds.org/mediawiki/index.php?title=r7.1.0:Enum_lfds710_queue_bss_query&feed=atom&action=historyr7.1.0:Enum lfds710 queue bss query - Revision history2024-03-29T07:44:27ZRevision history for this page on the wikiMediaWiki 1.36.0https://www.liblfds.org/mediawiki/index.php?title=r7.1.0:Enum_lfds710_queue_bss_query&diff=661&oldid=prevAdmin at 13:18, 8 May 20162016-05-08T13:18:03Z<p></p>
<p><b>New page</b></p><div>{{DISPLAYTITLE:enum lfds710_queue_query}}<br />
==Source File==<br />
└───liblfds710<br />
└───inc<br />
└───liblfds710<br />
lfds710_queue_bounded_singleproducer_singleconsumer.h<br />
<br />
==Enum==<br />
enum lfds710_queue_bss_query<br />
{<br />
LFDS710_QUEUE_BSS_QUERY_GET_POTENTIALLY_INACCURATE_COUNT,<br />
LFDS710_QUEUE_BSS_QUERY_VALIDATE<br />
};<br />
<br />
==Values==<br />
''LFDS710_QUEUE_BSS_QUERY_GET_POTENTIALLY_INACCURATE_COUNT''<br />
: Counts the number of elements in the queue. This query, as with all operations on this queue, is not guaranteed to be accurate, which is to say, enqueue and dequeue operations which have returned to their calling thread may not yet be visible, which would lead the count to be inaccurate.<br />
<br />
''LFDS710_QUEUE_BSS_QUERY_BSS_VALIDATE''<br />
: Validates the queue. In fact, for this queue, where the backing store is an array, there is no validation, other than if the user provides as input a ''[[r7.1.0:struct lfds710_misc_validation_info|lfds710_misc_validation_info]]'', which indicates an expected range of the number of elements in the stack, in which case this query counts the number of elements in the queue and checks they fall within the expected range. As ''LFDS710_QUEUE_BSS_QUERY_GET_COUNT'' is used to perform the count, the usual caveats aboout operations not yet being visible apply.<br />
<br />
==Notes==<br />
This enum is used by the bounded, single producer, single consumer queue query function, ''[[r7.1.0:function lfds710_queue_bss_query|lfds710_queue_bss_query]]''.<br />
<br />
==See Also==<br />
* [[r7.1.0:Queue (bounded, single producer, single consumer)|Queue (bounded, single producer, single consumer)]]</div>Admin