mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Rename wrapReleasableObjectWithUniquePtr to clUniquePtr
Change-Id: I67a3ff2d30d8f8485394bd2744de0924205f092e Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
666d8854f8
commit
2e5e785092
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -14,7 +14,7 @@ template <typename T>
|
||||
using ReleaseableObjectPtr = std::unique_ptr<T, void (*)(T *)>;
|
||||
|
||||
template <typename T>
|
||||
static ReleaseableObjectPtr<T> wrapReleasableObjectWithUniquePtr(T *object) {
|
||||
static ReleaseableObjectPtr<T> clUniquePtr(T *object) {
|
||||
return ReleaseableObjectPtr<T>{object, [](T *p) { p->release(); }};
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user