Jump to content

DevHelp ProcRun: Difference between revisions

From EDM2
No edit summary
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE: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.  
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.  



Latest revision as of 03:23, 23 May 2025

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