Jump to content

DevHelp ProcRun

From EDM2
Revision as of 19:53, 27 July 2018 by Martini (talk | contribs)

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.

Syntax

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]

Parameters

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.

Return Code

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.

Example Code

C

#include  "dhcalls.h"

USHORT APIENTRY DevHelp_ProcRun( ULONG   EventId,
                                 PUSHORT AwakeCount)

Related Functions