Enum MemoryLockMode
- Namespace
- DotCompute.Abstractions.Pipelines.Enums
- Assembly
- DotCompute.Abstractions.dll
Specifies memory locking modes for pipeline memory management. Controls how memory regions are locked and accessed during execution.
public enum MemoryLockMode
Fields
Custom = 11Custom locking mechanism defined by the user.
ExclusiveWrite = 2Exclusive write lock preventing all other access during writes.
LockFree = 9Lock-free operations using atomic instructions.
Mutex = 7Mutex lock for longer-duration, high-contention scenarios.
None = 0No memory locking, allows concurrent access with potential contention.
Optimistic = 4Optimistic locking using compare-and-swap operations.
Pessimistic = 5Pessimistic locking acquiring locks before access.
ReadWrite = 3Read-write lock allowing multiple readers or a single writer.
Semaphore = 8Semaphore-based locking with configurable access count.
Shared read lock allowing multiple concurrent readers.
SpinLock = 6Spin lock for short-duration, low-contention scenarios.
WaitFree = 10Wait-free operations guaranteeing progress in bounded steps.