tibasSpaceDef_GetLockScope()

Returns the lock scope value that is set for a specified space.

Declaration

tibas_status tibasSpaceDef_GetLockScope(
    tibasSpaceDef    spaceDef,
    tibas_lockScope* lockScope);

Parameters

Parameter Description
SpaceDef Specify the spaceDef object that identifies the space for which you want to get the lock scope value.
lockScope Returns the lock scope. Can be one of the following:
  • TIBAS_LOCK_SCOPE_NONE
  • TIBAS_LOCK_SCOPE_THREAD
  • TIBAS_LOCK_SCOPE_PROCESS

Remarks

Use the tibasSpaceDef_GetLockScope() function to return the lock scope value that is set for a specified space.

Setting a lock scope prevents either threads or processes from writing over locked data.

The lock scope value can be one of the following:

TIBAS_LOCK_SCOPE_NONE
Specifies that locks do not have a scope.
TIBAS_LOCK_SCOPE_THREAD
Specifies that threads cannot write over data that is locked by another thread.
TIBAS_LOCK_SCOPE_PROCESS
Specifies that processes cannot write over data that is locked by another process; however, threads within the same process can overwrite data locked by another thread in the process.