void RandomLoop() { int free_global_count_max = 20; while (true) { g_scopeClosure.clear(); g_scopeString.clear(); g_scopeTable.clear(); int scope_count = RandomRange(1, 1000); RunScope(scope_count); TouchGlobalTable(RandomNum(scope_count)); int free_count = RandomRange(1, free_global_count_max++); FreeGlobal(free_count); if (free_global_count_max >= 1000) free_global_count_max = 20; g_gc.CheckGC(); #ifdef _MSC_VER Sleep(RandomRange(1, 20)); #else usleep(RandomRange(1000, 20000)); #endif // _MSC_VER } }
SELWIN_LIBAPI VOID WINAPI EXPORT MdiSelWinEnd(HWND hWnd) { LPOLDGLOBALS lp=FindGlobal(hWnd); if (lp) { SubClassMDIEnd(lp); } FreeGlobal(hWnd); }