Rename wrapReleasableObjectWithUniquePtr to clUniquePtr

Change-Id: I67a3ff2d30d8f8485394bd2744de0924205f092e
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2019-01-29 14:57:59 +01:00
committed by sys_ocldev
parent 666d8854f8
commit 2e5e785092
3 changed files with 8 additions and 8 deletions

View File

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