摘要: ManualResetEvent 允许线程通过发信号互相通信。通常,此通信涉及一个线程在其他线程进行之前必须完成的任务。 当一个线程开始一个活动(此活动必须完成后,其他线程才能开始)时,它调用 Reset 以将 ManualResetEvent 置于非终止状态。此线程可被视为控制 ManualResetEvent。调用 ManualResetEvent 上的 WaitOne 的线程将阻止,并等待信... 阅读全文
posted @ 2007-11-26 11:49 乐水者 阅读(461) 评论(0) 推荐(0)
摘要: 首先要先生成一个dll。 我自己的实现 加入一个dll.h文件,然后dll。cpp文件,内容如下 ///。h extern "C" __declspec(dllexport) int func(int a); ///。cpp #include "StdAfx.h" #include "dll.h" extern "C" __declspec(dllexport) int ... 阅读全文
posted @ 2007-11-21 20:18 乐水者 阅读(1058) 评论(0) 推荐(0)