企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## Thread:setScriptParam ###接口说明 >设置参数 > +++ put:setScriptParam 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("线程开启成功"); } ~~~