Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 SpaceDef : SpaceDef Operations : tibasSpaceDef_SetLockScope()

tibasSpaceDef_SetLockScope()
Function
Declaration
tibas_status tibasSpaceDef_SetLockScope(
tibasSpaceDef   spaceDef,
tibas_lockScope lockScope);
Purpose
Specifies the lock scope value that is set for a specified space.
Parameters
 
Remarks
Use the tibasSpaceDef_SetLockScope() function to specify 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.
See Also
tibasSpaceDef_GetLockScope()

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved