MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_win_init

Function my_win_init

mysys/my_init.c:356–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355
356static void my_win_init(void)
357{
358 DBUG_ENTER("my_win_init");
359
360#if defined(_MSC_VER)
361#if _MSC_VER < 1300
362 /*
363 Clear the OS system variable TZ and avoid the 100% CPU usage
364 Only for old versions of Visual C++
365 */
366 _putenv("TZ=");
367#endif
368#if _MSC_VER >= 1400
369 /* this is required to make crt functions return -1 appropriately */
370 _set_invalid_parameter_handler(my_parameter_handler);
371#endif
372#endif
373
374#ifdef __MSVC_RUNTIME_CHECKS
375 /*
376 Install handler to send RTC (Runtime Error Check) warnings
377 to log file
378 */
379 _RTC_SetErrorFunc(handle_rtc_failure);
380#endif
381
382 _tzset();
383
384 win_init_time();
385 win_init_registry();
386
387 DBUG_VOID_RETURN;
388}
389
390
391/*------------------------------------------------------------------

Callers 1

my_initFunction · 0.85

Calls 2

win_init_timeFunction · 0.85
win_init_registryFunction · 0.85

Tested by

no test coverage detected