[#BloombergLP-bslmt-QLock_EventFlag-waitUntilSet] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/QLock_EventFlag.adoc[QLock_EventFlag]::waitUntilSet :relfileprefix: ../../../ :mrdocs: Wait until this flag has been set (returning immediately if this flag is already set), and, if this flag is not already set, spin for the specified `spinCount` iterations before waiting on a semaphore. The behavior is undefined unless there are no other threads waiting for this flag to be set. == Synopsis Declared in `<bslmt_qlock.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void waitUntilSet(int spinRetryCount); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#