获取锁,可以指定获取锁的超时时间,如果指定的时间没有获取锁,则返回False,反之,返回True
To acquire a lock, you can specify the timeout period for acquiring a lock, return False if the specified time does not acquire a lock, and vice versa, return True
命名空间:
HslCommunication.Core.Pipe
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public bool PipeLockEnter()
Public Function PipeLockEnter As Boolean
public:
bool PipeLockEnter()
member PipeLockEnter : unit -> bool
返回值
类型:
Boolean是否正确的获得锁
参见