Configure the spin backoff level used under contention.
Synopsis
Declared in <bdlma_concurrentfixedpool.h>
void
setBackoffLevel(int backoffLevel);
Description
Configure this pool with the specified non‐negative backoffLevel that controls the amount of spinning that occurs when calls to this pool encounter contention. Setting backoffLevel to 0 disables spinning. Greater values of backoffLevel correspond to greater amounts of spinning. The behavior is undefined unless 0 <= backoffLevel. Note that both contention detection and spinning strategy are implementation defined.
Parameters
Name |
Description |
backoffLevel |
non‐negative spin intensity; 0 disables spinning |
Created with MrDocs