Table of Contents

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 = 11

Custom locking mechanism defined by the user.

ExclusiveWrite = 2

Exclusive write lock preventing all other access during writes.

LockFree = 9

Lock-free operations using atomic instructions.

Mutex = 7

Mutex lock for longer-duration, high-contention scenarios.

None = 0

No memory locking, allows concurrent access with potential contention.

Optimistic = 4

Optimistic locking using compare-and-swap operations.

Pessimistic = 5

Pessimistic locking acquiring locks before access.

ReadWrite = 3

Read-write lock allowing multiple readers or a single writer.

Semaphore = 8

Semaphore-based locking with configurable access count.

SharedRead = 1

Shared read lock allowing multiple concurrent readers.

SpinLock = 6

Spin lock for short-duration, low-contention scenarios.

WaitFree = 10

Wait-free operations guaranteeing progress in bounded steps.