WeakBucketTable<'T> Type
Represents a thread-safe weak interning table. Values are grouped by a caller-supplied hash, and each bucket stores only weak references to the interned values.
Constructors
| Constructor |
Description
|
Full Usage:
WeakBucketTable(equals, initialize, ?cleanupThreshold)
Parameters:
'T -> 'T -> bool
initialize : 'T -> int -> unit
?cleanupThreshold : int
Returns: WeakBucketTable<'T>
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.BucketCount
Returns: int
|
Gets the number of hash buckets currently stored in the table.
|
Full Usage:
this.Clear
|
Removes all buckets and weak references from the table. |
Full Usage:
this.Count
Returns: int
|
Gets the number of weak references currently stored in the table. Dead references may be included until a cleanup runs.
|
Full Usage:
this.Intern
Parameters:
'T
hash : int
Returns: 'T
|
Finds the live canonical value equal to
|
Full Usage:
this.Sweep
|
Removes dead weak references from every bucket. |
B2R2