What value is ulTaskNotifyTake() supposed to return if it returns due to timeout?

I am trying to understand what value ulTaskNotifyTake() is supposed to return when it returns due to a timeout.
Based on my review of the source code, it MUST be ZERO since NotificationValue must never have gotten incremented before timeout occurred.
Is this correct?

Have to say this page is not very clear in that scenario, but looking at the code and your reasoning both show it can only be zero.

1 Like