💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## Thread:setScriptFile ###接口说明 >设置线程脚本文件 > +++ put:setScriptFile 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("线程开启成功"); } ~~~