threading.currentThread
获取当前线程的线程对象。
currentThread()示例
获取当前线程的Thread对象,输出当前线程的threadId。
javascript
function test() {
Log("Current thread ID:", threading.currentThread().id())
}
function main() {
var t1 = threading.Thread(test)
t1.join()
}返回值
| 类型 | 描述 |
| 当前线程的线程对象。 |
参考
备注
支持回测系统、实盘环境。