From dd7abe01a62730aea44cc6dc643d87d987b710d4 Mon Sep 17 00:00:00 2001 From: Nick Banks Date: Fri, 6 Dec 2024 12:42:29 -0500 Subject: [PATCH] c++ formatting is nicer --- docs/Execution.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Execution.md b/docs/Execution.md index 3ccf15d00f..36e764409d 100644 --- a/docs/Execution.md +++ b/docs/Execution.md @@ -124,7 +124,7 @@ To create an execution context, the app much first create an event queue object, On Windows, the following types are defined: -```c +```c++ typedef HANDLE QUIC_EVENTQ; typedef struct QUIC_CQE { @@ -137,7 +137,7 @@ You will also notice the definiton for `QUIC_CQE` (CQE stands for completion que Once the app has the event queue, it may create the execution context with the `ExecutionCreate` function: -```c +```c++ HANDLE IOCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, nullptr, 0, 1); QUIC_EXECUTION_CONTEXT_CONFIG ExecConfig = { 0, &IOCP }; @@ -150,7 +150,7 @@ An application may expand this code to create multiple execution contexts, depen To drive this execution context, the app will need to to periodically call `ExecutionPoll` and use the platform specific function to drain completion events from the event queue. -```c +```c++ bool AllDone = false; while (!AllDone) { uint32_t WaitTime = MsQuic->ExecutionPoll(ExecContext);