diff options
-rw-r--r-- | arm_compute/runtime/CL/CLScheduler.h | 4 | ||||
-rw-r--r-- | src/runtime/CL/CLScheduler.cpp | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/arm_compute/runtime/CL/CLScheduler.h b/arm_compute/runtime/CL/CLScheduler.h index 91bfe5b213..3985829a49 100644 --- a/arm_compute/runtime/CL/CLScheduler.h +++ b/arm_compute/runtime/CL/CLScheduler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017 ARM Limited. + * Copyright (c) 2016, 2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -52,6 +52,8 @@ class CLScheduler private: /** Constructor */ CLScheduler(); + /** Destructor */ + ~CLScheduler(); /** Prevent instances of this class from being copied (As this class contains pointers) */ CLScheduler(const CLScheduler &) = delete; /** Prevent instances of this class from being copied (As this class contains pointers) */ diff --git a/src/runtime/CL/CLScheduler.cpp b/src/runtime/CL/CLScheduler.cpp index bf13a25693..c947b7acc4 100644 --- a/src/runtime/CL/CLScheduler.cpp +++ b/src/runtime/CL/CLScheduler.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017 ARM Limited. + * Copyright (c) 2016, 2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -35,6 +35,11 @@ CLScheduler::CLScheduler() { } +CLScheduler::~CLScheduler() +{ + _queue.finish(); +} + CLScheduler &CLScheduler::get() { std::call_once(_initialize_symbols, opencl_is_available); |