mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Add RAII wrapper for DeviceFactory cleanup.
Change-Id: Iae94df4894bb6bcd64b22c4d197eec7d7fede0b5
This commit is contained in:
committed by
sys_ocldev
parent
c34ed02f57
commit
1c17c3b325
@@ -20,6 +20,7 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#pragma once
|
||||
#include "runtime/os_interface/device_factory.h"
|
||||
#include "runtime/utilities/reference_tracked_object.h"
|
||||
|
||||
namespace OCLRT {
|
||||
@@ -28,6 +29,9 @@ class CommandStreamReceiver;
|
||||
class MemoryManager;
|
||||
struct HardwareInfo;
|
||||
class ExecutionEnvironment : public ReferenceTrackedObject<ExecutionEnvironment> {
|
||||
private:
|
||||
DeviceFactoryCleaner cleaner;
|
||||
|
||||
public:
|
||||
ExecutionEnvironment();
|
||||
~ExecutionEnvironment() override;
|
||||
|
||||
Reference in New Issue
Block a user