AcxCircuitResumeIo 宏 (acxcircuit.h)

AcxCircuitResumeIo 函式用來在暫時停止之後繼續線路 I/O。

語法

void AcxCircuitResumeIo(
   Circuit
);

參數

Circuit

現有的 ACXCIRCUIT 物件。 如需 ACX 對象的詳細資訊,請參閱 ACX 物件的摘要

傳回值

備註

不建議使用此版本的停止 IO 呼叫,而是使用 Tag 來提供其他診斷資訊,而不是 AcxCircuitResumeIoWithTag 宏

範例

範例使用方式如下所示。


    BOOLEAN                         stoppedIo = FALSE;
    circuit = AcxPinGetCircuit(pin);

    //
    // Temporarily disable this circuit's I/Os while we are updating the 
    // formats. This thread cannot be an I/O dispatched thread else we deadlock.
    //
    status = AcxCircuitStopIo(circuit, AcxStopIoNoFlags);
    if (!NT_SUCCESS(status))
    {
        HDTrace(TRACE_LEVEL_ERROR, FLAG_INFO, 
                "Failed to stop I/O on circuit %p, %!STATUS!", 
                circuit, status);
        ASSERT(FALSE);
        goto exit;
    }
    stoppedIo = TRUE;

   // Code to update format list not shown here 

...

    if (stoppedIo)
    {
        AcxCircuitResumeIo(circuit);
        stoppedIo = FALSE;
    }

ACX 需求

最小 ACX 版本: 1.0

如需 ACX 版本的詳細資訊,請參閱 ACX 版本概觀

規格需求

需求
標頭 acxcircuit.h
IRQL PASSIVE_LEVEL

另請參閱