Changeset 2309
- Timestamp:
- 03/09/10 15:33:58 (5 months ago)
- Location:
- FalconView/trunk/public/fvw_core/GeodataDataSources
- Files:
-
- 2 modified
-
KMLDataLoader.cpp (modified) (1 diff)
-
KMLDataLoader.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FalconView/trunk/public/fvw_core/GeodataDataSources/KMLDataLoader.cpp
r2277 r2309 28 28 ::InitializeCriticalSection(&m_RequestQueueCs); 29 29 30 // start data load request handler31 m_hThread = (HANDLE)_beginthreadex(NULL, // Ignored. Must be NULL.32 0, // Ignored.33 &CKMLDataLoader::KMLResourceLoadThread, // application-defined function34 static_cast<LPVOID>(this), // 32-bit parameter value passed to the thread35 CREATE_SUSPENDED, // Specifies flags that control the creation of the thread36 &m_uThreadId); // 32-bit variable that receives the thread identifier37 38 30 m_TerminateThreadEvent = ::CreateEvent(NULL, FALSE, FALSE, L""); 39 31 m_hThreadTerminatedEvent = ::CreateEvent(NULL, FALSE, FALSE, L""); 40 32 41 ::ResumeThread(m_hThread); 33 // start data load request handlers 34 for (int i=0; i<NUM_DATA_LOADING_THREADS; i++) 35 { 36 m_hThread[i] = (HANDLE)_beginthreadex(NULL, // Ignored. Must be NULL. 37 0, // Ignored. 38 &CKMLDataLoader::KMLResourceLoadThread, // application-defined function 39 static_cast<LPVOID>(this), // 32-bit parameter value passed to the thread 40 CREATE_SUSPENDED, // Specifies flags that control the creation of the thread 41 &m_uThreadId); // 32-bit variable that receives the thread identifier 42 43 ::ResumeThread(m_hThread[i]); 44 } 42 45 } 43 46 -
FalconView/trunk/public/fvw_core/GeodataDataSources/KMLDataLoader.h
r2277 r2309 5 5 6 6 class CKMLResource; 7 8 #define NUM_DATA_LOADING_THREADS 4 7 9 8 10 class CKMLDataLoader … … 15 17 HANDLE m_hRequestQueueSemaphore; 16 18 CRITICAL_SECTION m_RequestQueueCs; 17 HANDLE m_hThread ;19 HANDLE m_hThread[NUM_DATA_LOADING_THREADS]; 18 20 UINT m_uThreadId; 19 21 HANDLE m_TerminateThreadEvent;
