次の方法で共有


AcxCircuitResumeIo マクロ (acxcircuit.h)

AcxCircuitResumeIo 関数は、一時的に停止した後に回線 I/O を再開するために使用されます。

構文

void AcxCircuitResumeIo(
   Circuit
);

パラメーター

Circuit

既存の ACXCIRCUIT オブジェクト。 ACX オブジェクトの詳細については、「 ACX オブジェクトの概要」を参照してください。

戻り値

なし

解説

このバージョンの STOP IO 呼び出しを使用することはお勧めしませんが、タグを使用して追加の診断情報を提供するため、 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 バージョンの概要」を参照してください。

要件

要件
Header acxcircuit.h
IRQL PASSIVE_LEVEL

こちらもご覧ください