Thread

Thread

package cpp-vm

Available on cpp

Variables

read only handle:ThreadHandle

Methods

sendMessage (msg:Dynamic):Void

Send a message to the thread queue. This message can be read by using readMessage.

Static methods

static create (callb:Void ‑> Void):Thread

Creates a new thread that will execute the callb function, then exit.

static current ():Thread

Returns the current thread.

static readMessage (block:Bool):Dynamic

Reads a message from the thread queue. If block is true, the function blocks until a message is available. If block is false, the function returns null if no message is available.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部