尝试取得指定之物件的独占锁定,并且完整设定值,指出是否采用锁定。
Attempts to acquire an exclusive lock on the specified object, and atomically sets a value that indicates whether the lock was taken.
尝试在指定的毫秒数内取得指定之物件的独占锁定,并且完整设定值,指出是否采用锁定。
Attempts, for the specified amount of time, to acquire an exclusive lock on the specified object, and atomically sets a value that indicates whether the lock was taken.
应用推荐