作者elfkiller (没有昵称)
看板C_Sharp
标题[问题] thread
时间Sun Oct 18 22:07:38 2009
大家好
我在 windows form 中建立了一条 thread
可是原本的 UI thread 中有一段程式码一定要先执行(下载一个档案)
再从新的 thread 中开启这个档案
请问我要怎麽作才能够保证这一段 critical section 按照我想要的顺序执行
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.137.124.207
1F:→ EricTsai:做完再建啊... 10/18 23:58
2F:→ pyrochlore:档案下载若是有类似download finished event 10/19 11:59
3F:→ pyrochlore:可以把档案开启写在event里 10/19 12:00