How does the main thread with the secondary thread for global variable communication

xiaoxiao2021-03-06  60

The main thread is the simplest and effective way to communicate with the secondary wire with the midplass communication. For example, the following code: uint threadProc (lpvoid pParam) {g_ncount = 0; while (g_ncount <100) :: InterlockedIncrement ((long *) & g_ncount); return 0;}

转载请注明原文地址:https://www.9cbs.com/read-84630.html

New Post(0)