Skip to content

Commit

Permalink
c++ formatting is nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Dec 6, 2024
1 parent b743020 commit dd7abe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 };
Expand All @@ -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);
Expand Down

0 comments on commit dd7abe0

Please sign in to comment.