同步操作将从 libhv/libhv 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "hplatform.h"#ifdef OS_WIN#ifdef ENABLE_WINDUMP#include <dbghelp.h>#ifdef _MSC_VER#pragma comment(lib,"dbghelp.lib")#endifstatic LONG UnhandledException(EXCEPTION_POINTERS *pException) {char modulefile[256];GetModuleFileName(NULL, modulefile, sizeof(modulefile));char* pos = strrchr(modulefile, '\\');char* modulefilename = pos + 1;SYSTEMTIME st;GetLocalTime(&st);char filename[256];snprintf(filename, sizeof(filename), "core_%s_%04d%02d%02d_%02d%02d%02d_%03d.dump",modulefilename,st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);HANDLE hDumpFile = CreateFile(filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);MINIDUMP_EXCEPTION_INFORMATION dumpInfo;dumpInfo.ExceptionPointers = pException;dumpInfo.ThreadId = GetCurrentThreadId();dumpInfo.ClientPointers = TRUE;MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), hDumpFile, MiniDumpNormal, &dumpInfo, NULL, NULL);CloseHandle(hDumpFile);return EXCEPTION_EXECUTE_HANDLER;}#endif#include "hsocket.h"class WsaRAII {public:WsaRAII() {WSAInit();#ifdef ENABLE_WINDUMPSetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)UnhandledException);#endif}~WsaRAII() {WSADeinit();}};static WsaRAII s_wsa;#endif#ifdef WITH_CURL#include "curl/curl.h"#ifdef _MSC_VER//#pragma comment(lib, "libcurl.a")#pragma comment(lib, "ws2_32.lib")#pragma comment(lib, "wldap32.lib")#pragma comment(lib, "advapi32.lib")#pragma comment(lib, "crypt32.lib")#endifclass CurlRAII {public:CurlRAII() {curl_global_init(CURL_GLOBAL_ALL);}~CurlRAII() {curl_global_cleanup();}};static CurlRAII s_curl;#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。