Represents an active action group. More...
#include <depcache.h>
Public Member Functions | |
ActionGroup (pkgDepCache &cache) | |
Create a new ActionGroup. More... | |
~ActionGroup () | |
Destroy the action group. More... | |
void | release () |
Clean up the action group before it is destroyed. More... | |
Private Member Functions | |
ActionGroup (const ActionGroup &other) | |
Action groups are noncopyable. More... | |
Private Attributes | |
pkgDepCache & | cache |
bool | released |
Represents an active action group.
An action group is a group of actions that are currently being performed. While an active group is active, certain routine clean-up actions that would normally be performed after every cache operation are delayed until the action group is completed. This is necessary primarily to avoid inefficiencies when modifying a large number of packages at once.
This class represents an active action group. Creating an instance will create an action group; destroying one will destroy the corresponding action group.
The following operations are suppressed by this class:
|
private |
Action groups are noncopyable.
pkgDepCache::ActionGroup::ActionGroup | ( | pkgDepCache & | cache | ) |
Create a new ActionGroup.
cache | The cache that this ActionGroup should manipulate. |
As long as this object exists, no automatic cleanup operations will be undertaken.
pkgDepCache::ActionGroup::~ActionGroup | ( | ) |
Destroy the action group.
If this is the last action group, the automatic cache cleanup operations will be undertaken.
void pkgDepCache::ActionGroup::release | ( | ) |
Clean up the action group before it is destroyed.
If it is destroyed later, no second cleanup wil be run.
|
private |
|
private |