[#BloombergLP-bslmt-FastPostSemaphore-postWithRedundantSignal]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/FastPostSemaphore.adoc[FastPostSemaphore]::postWithRedundantSignal
:relfileprefix: ../../../
:mrdocs:

Atomically increase the count of this semaphore by the specified `value`&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;fastpostsemaphore&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
postWithRedundantSignal(
    int value,
    int available,
    int blocked);
----

== Description

If the resources available to this semaphore is greater than or equal to the specified `available` and the number of threads blocked in this semaphore is greater than or equal to the specified `blocked`, always send a signal to potentially wake a waiting thread (even if the signal should not be needed)&period; The behavior is undefined unless `value &gt; 0`&period; Note that this method is provided to help mitigate issues in the implementation of underlying synchronization primitives&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| amount by which to increase the semaphore count
| *available*
| available&hyphen;resource threshold that forces a signal
| *blocked*
| blocked&hyphen;thread threshold that forces a signal
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
