mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-21 02:32:06 +08:00
Add global destructor of platforms
Change-Id: I7f0c9a9a13cae5cbf831e0d4e410c78c001a75d1 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
e079d94869
commit
40d487fa90
18
opencl/source/os_interface/windows/platform_teardown_win.cpp
Normal file
18
opencl/source/os_interface/windows/platform_teardown_win.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/source/platform/platform.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
|
||||
if (fdwReason == DLL_PROCESS_DETACH) {
|
||||
delete platformsImpl;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user