合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## Thread:getThreadID ###接口说明 >获取当前线程ID > +++ put:getThreadID var:thread=当前的线程句柄# <<< success 无返回类型 +++ ###代码演示 ~~~ var main(var t,var params) { var thread = new Thread; thread.setScriptFile("script/newthread.cpp"); thread.setScriptParams(t.getThreadID()); thread.startThread(); } var handlequeue(var data) { println(data); } newthread.cpp var main(var thread,var params) { postMsgToThread(params,"我开启了"); //多线程传送内容 println("线程开启成功"); } ~~~