Compute Library
 20.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.

90  : _memory_group(memory_group)
91  {
92  _memory_group.acquire();
93  }
virtual void acquire()=0
Acquires backing memory for the whole group.

References IMemoryGroup::acquire().

◆ ~MemoryGroupResourceScope()

Destructor.

Definition at line 95 of file IMemoryGroup.h.

96  {
97  _memory_group.release();
98  }
virtual void release()=0
Releases backing memory of the whole group.

References IMemoryGroup::release().


The documentation for this class was generated from the following file: