[#BloombergLP-bslmt-Turnstile-reset] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Turnstile.adoc[Turnstile]::reset :relfileprefix: ../../../ :mrdocs: Reset this turnstile to admit clients at the specified `rate`. == Synopsis Declared in `<bslmt_turnstile.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reset( double rate, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& startTime = bsls::TimeInterval(0), xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& minTimeToCallSleep = bsls::TimeInterval(1e‐4)); ---- == Description Reset the rate of this turnstile to the specified `rate`, expressed as the number of turns per second. Optionally specify the (relative) `startTime` of the first turn. If `startTime` is not specified, the first turn may be taken immediately. Optionally specify `minTimeToCallSleep`, the shortest period of time in seconds that the `waitTurn` function will go to sleep. The behavior is undefined unless `0 < rate`. Note that threads blocked on `waitTurn` are not interrupted. == Parameters [cols="1,4"] |=== | Name| Description | *rate* | turns per second this turnstile admits | *startTime* | relative time of the first turn | *minTimeToCallSleep* | shortest sleep duration for `waitTurn` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#