2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
2018-09-18 15:11:08 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#pragma once
|
|
|
|
#include "runtime/utilities/idlist.h"
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
class DeferrableDeletion : public IDNode<DeferrableDeletion> {
|
|
|
|
public:
|
|
|
|
template <typename... Args>
|
|
|
|
static DeferrableDeletion *create(Args... args);
|
|
|
|
virtual void apply() = 0;
|
|
|
|
virtual ~DeferrableDeletion() = default;
|
|
|
|
};
|
2018-06-13 03:54:39 +08:00
|
|
|
} // namespace OCLRT
|