apt @VERSION@
|
Represents an active action group. More...
#include <depcache.h>
Public Member Functions | |
ActionGroup (pkgDepCache &cache) | |
Create a new ActionGroup. | |
void | release () |
Clean up the action group before it is destroyed. | |
~ActionGroup () | |
Destroy the action group. |
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:
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.
~ActionGroup | ( | ) |
Destroy the action group.
If this is the last action group, the automatic cache cleanup operations will be undertaken.
void release | ( | ) |
Clean up the action group before it is destroyed.
If it is destroyed later, no second cleanup wil be run.