Using a win32 SetWaitableTimer with a period of 0 means that the timer will only be signaled once. This will make the ThreadBasedCyclicSendTask to only send one message.
The period of the timer, in milliseconds. If lPeriod is zero, the timer is signaled once. If lPeriod is greater than zero, the timer is periodic. A periodic timer automatically reactivates each time the period elapses, until the timer is canceled using the CancelWaitableTimer function or reset using SetWaitableTimer. If lPeriod is less than zero, the function fails.
Using a win32
SetWaitableTimer
with a period of0
means that the timer will only be signaled once. This will make theThreadBasedCyclicSendTask
to only send one message.https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-setwaitabletimer