Home |
RTKernel-32 Programming Manual Function RTKPulse |
Function RTKPulseFunction RTKPulse releases all tasks waiting at an event semaphore and immediately resets the semaphore. void RTKPulse(RTKSemaphore S); ParametersSAll tasks currently waiting at S are made ready. If one or more of these have a higher priority than the calling task, a task switch occurs. If flag RF_PULSWIN32 is set in RTKConfig.Flags (which is not the case by default), the semaphore is set to 0 if one or more tasks are actually released by this call. If no tasks are released, the semaphore is set to 1. If flag RF_PULSWIN32 is not set in RTKConfig.Flags, RTKernel-32 always sets the value to 0. If S does not reference an event semaphore, a fatal error is generated by the Debug Version.
|