DevHelp ProcRun

This service is the companion routine to ProcBlock. When ProcRun is called, it awakens all the threads that were blocked for this particular event identifier.

C
 USHORT APIENTRY DevHelp_ProcRun( ULONG  EventId,                                 PUSHORT AwakeCount) 

Assembler
 MOV  BX,event_id_low         ; Low word of event identifier. MOV  AX,event_id_high        ; High word of event identifier. MOV  DL,DevHlp_ProcRun

CALL [Device_Help] 

C

 * EventId (ULONG): Event identifier.


 * AwakeCount (PUSHORT)  :  Count of threads awakened to be returned.

Assembler
 MOV  BX,event_id_low         ; Low word of event identifier. MOV  AX,event_id_high        ; High word of event identifier. 

C
Success Indicator: 0

Possible errors: None.

Assembler
 AX = Count of threads awakened.

'Z' Set or clear according to the contents of AX. 

Remarks
ProcRun returns immediately to its caller; the awakened threads are run at the next available opportunity. ProcRun is often called at interrupt time. See ProcBlock for a more detailed discussion of blocking and running threads.

C

 * 1) include "dhcalls.h"

USHORT APIENTRY DevHelp_ProcRun( ULONG  EventId,                                 PUSHORT AwakeCount) 