RecordLockRequestType Enumeration
- Last UpdatedApr 08, 2026
- 3 minute read
public enum RecordLockRequestType : System.Enum
public enum class RecordLockRequestType : public System.Enum
| Member | Description |
|---|---|
| ATTACH_READ | Internal use only. DO NOT USE |
| ATTACH_WRITE | Internal use only. DO NOT USE |
| CONVERT_RESRW_SWRITE | The lock type to use to convert an existing RESERVE_READ_WRITE lock on a record to a REQ_PRIO_WRITE lock. If there is an existing read lock, this request will wait until the lock is released. This lock type ensures there will be no interruptions by write locks from other programs or threads while the lock is converted. |
| CONVERT_SWRITE_RESRW | The lock type to use to convert an existing REQ_PRIO_WRITE lock on a record to a RESERVE_READ_WRITE lock. This lock type ensures there will be no interruptions by write locks from other programs or threads while the lock is converted. |
| REQ_PRIO_WRITE | The lock type to register the calling thread to have priority over lock requests from other programs and threads. If there is an existing lock, this request will wait until the lock is released. No other program or thread will be allowed access to this record while this lock is in place, subject to the following exception: If the program or thread already has a compatible lock (for example, if it holds a SAFE_READ lock on the record and then requests a SAFE_READ or UNSAFE_READ), it will get the lock and this thread will continue to wait. This exception avoids possible deadlocks. |
| RESERVE_READ_WRITE | The lock type to use to quickly switch between a read lock and a write lock. It allows other processes and threads to get a read lock on the record. This lock type ensures there will be no interruptions by write locks from other programs or threads. |
| SAFE_READ | The lock type to use to read a record. When using this lock type, other programs and threads will be allowed to gain UNSAFE_READ or SAFE_READ access on the same record at the same time. Other lock types will be blocked until this request is complete. If there is any existing UNSAFE_WRITE, SAFE_WRITE, or REQ_PRIO_WRITE lock, this request will wait until the write lock is released unless double buffering is enabled. |
| SAFE_WRITE | The lock type to allow writes to a record. When using this lock type, no other programs or threads will be allowed access to this record. If there is any existing lock, this request will wait until the lock is released. |
| UNSAFE_READ | The lock type to read a record without exclusive read access. Programs or threads requesting UNSAFE_READ or UNSAFE_WRITE lock on the same record will be permitted. Other lock types will be blocked until this request is complete. The exception to this is if double buffering is enabled, which will allow safe write locks while there are any type of read locks. If there is an existing SAFE_WRITE or REQ_PRIO_WRITE lock, this request will wait until the write lock is released unless double buffering is enabled. This lock type is not required in most scenarios and should only be used by advanced programmers. Even then, the frequency of this constant being used should be rare. |
| UNSAFE_WRITE | The lock type to read or write a record without ensuring exclusive access. Programs or threads requesting an UNSAFE_READ or UNSAFE_WRITE lock on the same record will be permitted. Other lock types will be blocked until this request is complete. If there is an existing SAFE_READ, SAFE_WRITE, REQ_PRIO_WRITE, or RESERVE_READ_WRITE lock, this request will wait until the lock is released. This lock type is not required in most scenarios and should only be used by advanced programmers. Even then, the frequency of this constant being used should be rare. |
System.Object
System.ValueType
System.Enum
OASySDNA.RealTime.HighPerformanceSetDB.RecordLockRequestType