Location:
Search - cevent example
Search list
Description: 利用CEvent实现多线程同步-CEvent use synchronous multi-threaded
Platform: |
Size: 2792448 |
Author: 李刚 |
Hits:
Description: 简单直接地演示了如何利用事件对象进行进程/线程间同步/通信的实例应用,是进程/线程间同步/通信初学者的绝佳源代码教材-Simple and direct way to demonstrate how to use event object to process/inter-thread synchronization/communication application example is the process/inter-thread synchronization/communication beginners an excellent source of teaching materials
Platform: |
Size: 9216 |
Author: 刘志林 |
Hits:
Description: 自动事件 和 手工事件 的类型均为 CEvent 类,只是第二个参数上有区别:
自动事件:CEvent eventObj 等效于 eventObj(FALSE,FALSE)
手工事件对象定义方法 CEvent eventObj(FALSE,TRUE)
注:CEvent 其实由四个参数的,可参考msdn
以下通过一个具体示例,说明自动事件 和 手工事件的区别:
-Automatic and manual case the type of case are CEvent category, but on the second parameter has the distinction: Automatic Case: CEvent eventObj equivalent eventObj (FALSE, FALSE) case object definition manually Ways CEvent eventObj (FALSE, TRUE) Note : CEvent in fact consists of four parameters, refer to the following msdn through a specific example of automatic and manual case case distinction:
Platform: |
Size: 31744 |
Author: yfx |
Hits:
Description: 控制台程序中CEvent简单使用实例。创建两个线程使线程能够达到同步。-Console application CEvent simple example. Create two threads to synchronize the threads.
Platform: |
Size: 1600512 |
Author: lbq |
Hits: