[#BloombergLP-bslmt-Turnstile-waitTurn] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Turnstile.adoc[Turnstile]::waitTurn :relfileprefix: ../../../ :mrdocs: Sleep until the next turn may be taken or return immediately if the optionally specified `sleep` is false, this turnstile is lagging behind schedule, or if the calculated sleep duration is less than `minTimeToCallSleep`. Return the non‐negative number of microseconds spent waiting, or if `sleep` is false, the number of microseconds the function would have had to wait. == Synopsis Declared in `<bslmt_turnstile.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] waitTurn(bool sleep = true); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#