DoxigAlpha

lockPointers

Puts the hash map into a state where any method call that would cause an existing key or value pointer to become invalidated will instead trigger an assertion.

An additional call to lockPointers in such state also triggers an assertion.

unlockPointers returns the hash map to the previous state.

Function parameters

Parameters

#
self:*Self

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
StringHashMap
Builtin hashmap for strings as keys.
StringHashMapUnmanaged
Key memory is managed by the caller.
HashMap
General purpose hash table.
HashMapUnmanaged
A HashMap based on open addressing and linear probing.

= 80

Values

#

Source

Implementation

#
pub fn lockPointers(self: *Self) void {
    self.unmanaged.lockPointers();
}