[#CountingSemaphoreGrant-2constructor-02] = xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant]::CountingSemaphoreGrant :relfileprefix: ../ :mrdocs: Constructs a grant bound to a semaphore, optionally acquiring without blocking. == Synopsis Declared in `<semaphore_grant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit CountingSemaphoreGrant( std::counting_semaphore<LeastMaxValue>& sema, bool fTry = false) noexcept; ---- == Parameters [cols="1,4"] |=== | Name| Description | *sema* | The semaphore to acquire a slot from. | *fTry* | If true, try to acquire without blocking; otherwise block until acquired. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#