IDatasourcesMgr2.Lock (METH)ΒΆ
METHOD Lock : SysTypes.RTS_IEC_RESULT
This method locks the concurrent task for monitoring items and allows subsequent accesses to methods of the current instance. To unlock again afterwards, call IDatasourcesMgr2.Unlock
- InOut:
- Scope - Name - Type - Comment - Return - Lock- SysTypes.RTS_IEC_RESULT- Returns a runtime system error code (see CmpErrors.library) or one of Errors - Input - xBlocking- BOOL- This variable signals the way to do the synchronization. TRUE: the call will be blocking FALSE: the call will be nonblocking and might faile with the error code Errors.ERR_DS_MULTITASKING_LOCKED 
