diff options
Diffstat (limited to 'src/runtime/CL/functions/CLSobel7x7.cpp')
-rw-r--r-- | src/runtime/CL/functions/CLSobel7x7.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/CL/functions/CLSobel7x7.cpp b/src/runtime/CL/functions/CLSobel7x7.cpp index 60830905df..9b38f6928f 100644 --- a/src/runtime/CL/functions/CLSobel7x7.cpp +++ b/src/runtime/CL/functions/CLSobel7x7.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017 ARM Limited. + * Copyright (c) 2016-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -81,10 +81,8 @@ void CLSobel7x7::run() { CLScheduler::get().enqueue(_border_handler, false); - _memory_group.acquire(); + MemoryGroupResourceScope scope_mg(_memory_group); CLScheduler::get().enqueue(_sobel_hor, false); CLScheduler::get().enqueue(_sobel_vert); - - _memory_group.release(); } |