TableLockRequestType Enumeration
- Last UpdatedApr 08, 2026
- 3 minute read
public enum TableLockRequestType : System.Enum
public enum class TableLockRequestType : public System.Enum
| Member | Description |
|---|---|
| CONVERT_RESRW_SWRITE | The lock type to use to convert an existing RESERVE_READ_WRITE lock on a table to a REQ_PRIO_WRITE lock. If there is an existing read lock, this request will wait until the lock is released. Ensures that 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 table to a RESERVE_READ_WRITE lock. Ensures that 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 table 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 table 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. Allows other processes and threads to get a read lock on the table. Ensures that there will be no interruptions by write locks from other programs or threads. |
| SAFE_READ | The lock type to use to read or modify any non-key fields for one or more records. When using this lock type, other programs and threads will be allowed to gain SAFE_READ access on the same table at the same time. Programs or threads using any lock type on the same table other than SAFE_READ will be blocked until this request is complete. Remember to use SAFE_WRITE lock type instead under the following scenarios:
|
| SAFE_WRITE | The lock type to use to modify records at the table level, specifically to either:
When using this lock type, no other programs or threads will be allowed. |
| UNSAFE_READ | The lock type to read a table without exclusive read access. Programs or threads using an UNSAFE_READ or UNSAFE_WRITE lock on the same table will be permitted. Other lock types will be blocked until this request is complete. 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 to a table without ensuring exclusive access. Programs or threads using an UNSAFE_READ or UNSAFE_WRITE lock on the same table will be permitted. Other lock types will be blocked until this request is complete. 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.TableLockRequestType