void SortCLC(HWND hwnd,struct ClcData *dat,int useInsertionSort) { #ifdef _DEBUG DWORD tick = GetTickCount(); #endif int oldSort = dat->needsResort; saveSortCLC(hwnd, dat, useInsertionSort); if ( oldSort ) ClearRowByIndexCache(); #ifdef _DEBUG { char buf[255]; //sprintf(buf,"%s %s took %i ms",__FILE__,__LINE__,tick); tick = GetTickCount()-tick; if (tick > 5) { mir_snprintf(buf, SIZEOF(buf), "SortCLC %d \r\n", tick); OutputDebugStringA(buf); db_set_dw((HANDLE)0,"CLUI","PF:Last SortCLC Time:",tick); } } #endif }
void cli_SortCLC( HWND hwnd, struct ClcData *dat, int useInsertionSort ) { lockdat; saveSortCLC(hwnd,dat,useInsertionSort); ulockdat; }