Struct PointInTimeAccessor.WorkerLease
A worker accessor leased to one thread for one stretch of reads (Enter(int)): its epoch pin lasts exactly as long as the lease. Dispose it
on the thread that took it, in reverse order of nested leases — using does both. Never copy it: two copies would end one lease twice.
public ref struct PointInTimeAccessor.WorkerLease
- Inherited Members
Properties
Accessor
The worker's accessor: read, and write SingleVersion / Transient components, through it while the lease is open.
public readonly EntityAccessor Accessor { get; }
Property Value
Methods
Dispose()
Ends the lease and unpins the thread's epoch (the outermost lease on the thread).
public void Dispose()