E*******s 发帖数: 42 | 1 我把原程序抄过来, 有劳大家只用抄过去, run 一 run, 讲一讲想法啊:) 万能的坛子.
switch | G***o 发帖数: 5158 | 2 gerdo deserves a spank for
the shameless ripoff from newsgroups:
====================================
The second argument only matters if you have a lock on
the block of code that contains the Mutex.WaitOne(,) call.
Passing true will cause the thread to release its lock on
that code, then sleep for the designated amount of time,
then reaquire the lock before continuing.
Passing false will cause the thread to keep its lock on
that code while it sleeps so it doesn't have to reaquire
it when it wak
【在 E*******s 的大作中提到】 : 我把原程序抄过来, 有劳大家只用抄过去, run 一 run, 讲一讲想法啊:) 万能的坛子. : : switch
| k****i 发帖数: 1072 | 3 WaitOne returns true if the event is signalled(or the thread is blocked
infinitely),false if the timeout occured.So when you specified the timeout to
zero,it return false immediately;If there is no parameter,the thread is just
blocked.
not
【在 E*******s 的大作中提到】 : 我把原程序抄过来, 有劳大家只用抄过去, run 一 run, 讲一讲想法啊:) 万能的坛子. : : switch
|
|