首页
IT
登录
6mi
u
盘
搜
搜 索
IT
c#InvokeRequired
c#InvokeRequired
xiaoxiao
2021-12-14
16
public
void
Function
()
{
if
(
this
.
InvokeRequired
)
{
this
.
BeginInvoke
(
new
Action
(
this
.
Function
));
return
;
}
// controller.DoSomething();
}
其他线程想调用这个函数,这个时候InvokeRequired为1,要做的是new一个新的Function
转载请注明原文地址: https://ju.6miu.com/read-965131.html
专利
最新回复
(
0
)