Welcome![Sign In][Sign Up]
Location:
Search - THREAD.Z

Search list

[Windows Develop在动态连接库内封装应用程序框架cool

Description: 实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.-method: a normal DLL file has been created with the program wizard and there is an instance generated from CWinApp in the DLL file.Create another MFC EXE appliaction and copy CAppView,CMainFram,CAppDocument and the resources in RES directory to the normal DLL and add to the projec and compile and generate a DLL. In a Win32 application, start a thread which loads the DLL with codes, get the running thread, ie.CWinThread*pThread=GetCurrentThread(), then,pThread->Run() executes the loading and start the execution of the application framework in the normal DLL file.
Platform: | Size: 69632 | Author: | Hits:

[Internet-Networkexample

Description: 利用共享内存实现多线程间通信。 主线程派生子线程后即处于休眠状态,等待子线程结束时发出结束信号唤醒。在被唤醒后,主线程向屏幕输出结束信息! 线程A向共享内存中写入A~Z的大写字母。 线程B通过共享内存接收这些字母,并将其保存到/test.dat文件中。 注意线程之间的同步互斥! -Using shared memory communication between multi-threading. Derived from sub-thread after main thread is in sleep mode, waiting for the end of the child issued by the end of the thread wake-up signal. After being awakened, the main thread to the end of the output information on the screen! Thread A writes to the shared memory, A ~ Z of the capital letters. Thread B through shared memory to receive these letters, and save it to/test.dat file. Note that the synchronization between threads mutually exclusive!
Platform: | Size: 2048 | Author: 王锡栋 | Hits:

[Com PortCOM_Thread

Description: Using COM port under Windows XP + threading
Platform: | Size: 252928 | Author: imsoftware | Hits:

[uCOSucos2-vc

Description: ucos2 2.51 在vc 下得移植 一共有4个线程,主线程TaskStart初始化消息队列,开启定时器,Tast1只是简单的运行 Task2给Task3发消息,收到回执后继续发,从A发到Z,task3则收取消息并回执-ucos2 2.51 was transplanted under the vc A total of four threads, the main thread TaskStart initialization message queue, open the timer, Tast1 simply run Task2 to Task3 send an announcement, after receipt of receipt to issue, from A to Z, task3 then receive a message and receipt
Platform: | Size: 1053696 | Author: | Hits:

[CSharpmove

Description: 上面这段代码就是设置x轴方向的速度为30米每秒(UDF默认是SI单位制)。vel[0]表示x、vel[1]表示y、vel[2]表示z。细心读者肯定会有疑问,这里并没有指定是哪条边界移动,别急,这需要到后面,在Fluent里设置。-When one of these general multiphase models is enabled, storage must be set aside for the mixture as well as the individual phases. This functionality is manifested in the code through the use of additional thread and domain data structures. Consequently, some predefined macros have been added that allow access to data contained within mixture-level and phase-level domain and thread structures. See Section 3.11 for details on writing UDF for multiphase applications.
Platform: | Size: 38912 | Author: 印王 | Hits:

CodeBus www.codebus.net