SysRWLReadLockTry (FUN)

FUNCTION SysRWLReadLockTry : RTS_IEC_RESULT

This function tries enter a read lock(synchronization object). If a write lock is still active, the functions returns an error. The function succeeded as well, if another read lock is still active. NOTE: Several readers can enter the lock simultaneously! But they are synchronized against an entered write lock! RETURN: Returns the runtime system error code (see CmpErrors.library)

InOut:

Scope

Name

Type

Comment

Return

SysRWLReadLockTry

RTS_IEC_RESULT

Input

hRWLock

RTS_IEC_HANDLE

Handle to the ReadWrite lock object created by SysRWLCreate