KiokuDB::LiveObjects::Scope(3pm)

KiokuDB::LiveObjects::Scope3pm

Scope helper object

Usage

    {
        my $scope = $dir->new_scope;
        ... do work on $dir ...
    }

Version

version 0.57

Overview

Live object scopes exist in order to ensure objects don't die too soon if the only other references to them are weak.

When scopes are destroyed the refcounts of the objects they refer to go down, and the parent scope is replaced in the live object set.

Methods

push

Adds objects or entries, increasing their reference count.

clear

Clears the objects from the scope object.

detach

Marks this scope as no longer the "current" live object scope, if it is the current one.

This allows keeping branching of scopes, which can be useful under long running applications.

remove

Effectively kills the scope by clearing it and removing it from the live object set.

Releases

6 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 12–13

Author

Yuval Kogman <[email protected]>

From libkiokudb-perl 0.57-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.