https://www.liblfds.org/mediawiki/index.php?title=r7.1.0:Enum_lfds710_queue_bmm_query&feed=atom&action=historyr7.1.0:Enum lfds710 queue bmm query - Revision history2024-03-29T15:33:18ZRevision history for this page on the wikiMediaWiki 1.36.0https://www.liblfds.org/mediawiki/index.php?title=r7.1.0:Enum_lfds710_queue_bmm_query&diff=819&oldid=prevAdmin: Created page with "{{DISPLAYTITLE:enum lfds710_queue_bmm_query}} ==Source File== └───liblfds710 └───inc └───liblfds710 lfds710_queue_bmm.h..."2016-05-08T18:36:53Z<p>Created page with "{{DISPLAYTITLE:enum lfds710_queue_bmm_query}} ==Source File== └───liblfds710 └───inc └───liblfds710 lfds710_queue_bmm.h..."</p>
<p><b>New page</b></p><div>{{DISPLAYTITLE:enum lfds710_queue_bmm_query}}<br />
==Source File==<br />
└───liblfds710<br />
└───inc<br />
└───liblfds710<br />
lfds710_queue_bmm.h<br />
<br />
==Enum==<br />
enum lfds710_queue_umm_query<br />
{<br />
LFDS710_QUEUE_BMM_QUERY_GET_POTENTIALLY_INACCURATE_COUNT,<br />
LFDS710_QUEUE_BMM_QUERY_SINGLETHREADED_VALIDATE<br />
};<br />
<br />
==Values==<br />
''LFDS710_QUEUE_BMM_QUERY_GET_POTENTIALLY_INACCURATE_COUNT''<br />
: Counts the number of elements in the queue. Where with this queue, enqueue and dequeue operations are not guaranteed to be visible by the time the enqueue or dequeue function returns, it must then be that the count of operations can be inaccurate. If some (typically) tens of microseconds have passed since the last operation by any thread, the count will be correct.<br />
''LFDS710_QUEUE_UMM_QUERY_SINGLETHREADED_VALIDATE''<br />
: Validates the queue. Additionally, if given 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 queue, counts the number of elements in the queue and checks they fall within the expected range. As with count, both the loop check and the element count (which is in fact performed by issuing the ''LFDS710_QUEUE_UMM_QUERY_SINGLETHREADED_GET_COUNT'' query) can in theory enter an infinite loop if enqueue or dequeue operations occur while the validation operation is executing. You were warned.<br />
<br />
==Notes==<br />
This enum is used by the queue query function, ''[[r7.1.0:function lfds710_queue_bmm_query|lfds710_queue_bmm_query]]''.<br />
<br />
==See Also==<br />
* [[r7.1.0:Queue (bounded, many producer, many consumer)|Queue (bounded, many producer, many consumer)]]</div>Admin