Compute Library
 23.11
MemoryGroupResourceScope Class Reference

Memory group resources scope handling class. More...

#include <IMemoryGroup.h>

Public Member Functions

 MemoryGroupResourceScope (IMemoryGroup &memory_group)
 Constructor. More...
 
 ~MemoryGroupResourceScope ()
 Destructor. More...
 

Detailed Description

Memory group resources scope handling class.

Definition at line 82 of file IMemoryGroup.h.

Constructor & Destructor Documentation

◆ MemoryGroupResourceScope()

MemoryGroupResourceScope ( IMemoryGroup memory_group)
inlineexplicit

Constructor.

Parameters
[in]memory_groupMemory group to handle

Definition at line 89 of file IMemoryGroup.h.

89  : _memory_group(memory_group)
90  {
91  _memory_group.acquire();
92  }

References IMemoryGroup::acquire().

◆ ~MemoryGroupResourceScope()

Destructor.

Definition at line 94 of file IMemoryGroup.h.

95  {
96  _memory_group.release();
97  }

References IMemoryGroup::release().


The documentation for this class was generated from the following file:
arm_compute::IMemoryGroup::acquire
virtual void acquire()=0
Acquires backing memory for the whole group.
arm_compute::IMemoryGroup::release
virtual void release()=0
Releases backing memory of the whole group.