-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWaitBlock.h
More file actions
56 lines (38 loc) · 1.44 KB
/
Copy pathWaitBlock.h
File metadata and controls
56 lines (38 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- WaitBlock.h
Abstract:
- This file defines a queued operation when a console buffer object cannot currently satisfy the request.
Author:
- Michael Niksa (miniksa) 12-Oct-2016
Revision History:
- Adapted from original items in handle.h
--*/
#pragma once
#include "..\host\conapi.h"
#include "IWaitRoutine.h"
#include "WaitTerminationReason.h"
#include <list>
class ConsoleWaitQueue;
class ConsoleWaitBlock
{
public:
~ConsoleWaitBlock();
bool Notify(const WaitTerminationReason TerminationReason);
[[nodiscard]]
static HRESULT s_CreateWait(_Inout_ CONSOLE_API_MSG* const pWaitReplymessage,
_In_ IWaitRoutine* const pWaiter);
private:
ConsoleWaitBlock(_In_ ConsoleWaitQueue* const pProcessQueue,
_In_ ConsoleWaitQueue* const pObjectQueue,
const CONSOLE_API_MSG* const pWaitReplyMessage,
_In_ IWaitRoutine* const pWaiter);
ConsoleWaitQueue* const _pProcessQueue;
std::_List_const_iterator<std::_List_val<std::_List_simple_types<ConsoleWaitBlock*>>> _itProcessQueue;
ConsoleWaitQueue* const _pObjectQueue;
std::_List_const_iterator<std::_List_val<std::_List_simple_types<ConsoleWaitBlock*>>> _itObjectQueue;
CONSOLE_API_MSG _WaitReplyMessage;
IWaitRoutine* const _pWaiter;
};