VirtualC64
v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
Wakeable.h
1
// -----------------------------------------------------------------------------
2
// This file is part of VirtualC64
3
//
4
// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de
5
// This FILE is dual-licensed. You are free to choose between:
6
//
7
// - The GNU General Public License v3 (or any later version)
8
// - The Mozilla Public License v2
9
//
10
// SPDX-License-Identifier: GPL-3.0-or-later OR MPL-2.0
11
// -----------------------------------------------------------------------------
12
13
#pragma once
14
15
#include "Concurrency.h"
16
17
namespace
vc64
{
18
19
class
Wakeable
20
{
21
static
constexpr
auto
timeout = std::chrono::milliseconds(100);
22
23
std::mutex condMutex;
24
std::condition_variable condVar;
25
bool
ready =
false
;
26
27
public
:
28
29
void
waitForWakeUp(util::Time timeout);
30
void
wakeUp();
31
};
32
33
}
vc64
VirtualC64 project namespace.
Definition
CmdQueue.cpp:16
Emulator
Base
Wakeable.h
Generated by
1.10.0