Lock

Lock

package java-vm

Available on java

Constructor

new ()

Creates a new lock, which is initially locked

Methods

release ():Void

Release a lock. The thread does not need to own the lock to be able to release it. If a lock is released several times, it can be acquired as many times

wait (?timeout:Float):Bool

Waits for a lock to be released and acquire it. If timeout (in seconds) is not null and expires then the returned value is false

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/java/vm/Lock.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部