Add RAII wrapper for DeviceFactory cleanup.

Change-Id: Iae94df4894bb6bcd64b22c4d197eec7d7fede0b5
This commit is contained in:
Mrozek, Michal
2018-07-12 11:45:02 +02:00
committed by sys_ocldev
parent c34ed02f57
commit 1c17c3b325
4 changed files with 18 additions and 13 deletions

View File

@@ -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;