mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 17:57:47 +00:00
core: barrier service thread shutdown
This commit is contained in:
parent
99cefb62fd
commit
ee969900ae
6 changed files with 26 additions and 7 deletions
|
@ -102,15 +102,19 @@ NVFlinger::~NVFlinger() {
|
|||
system.CoreTiming().UnscheduleEvent(single_composition_event, {});
|
||||
}
|
||||
|
||||
ShutdownLayers();
|
||||
|
||||
if (nvdrv) {
|
||||
nvdrv->Close(disp_fd);
|
||||
}
|
||||
}
|
||||
|
||||
void NVFlinger::ShutdownLayers() {
|
||||
for (auto& display : displays) {
|
||||
for (size_t layer = 0; layer < display.GetNumLayers(); ++layer) {
|
||||
display.GetLayer(layer).Core().NotifyShutdown();
|
||||
}
|
||||
}
|
||||
|
||||
if (nvdrv) {
|
||||
nvdrv->Close(disp_fd);
|
||||
}
|
||||
}
|
||||
|
||||
void NVFlinger::SetNVDrvInstance(std::shared_ptr<Nvidia::Module> instance) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue