ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## Thread:startThread ###接口说明 >开启线程 > +++ put:startThread 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("线程开启成功"); } ~~~