fix(os): run case on win

This commit is contained in:
afwerar 2022-05-25 19:29:34 +08:00
parent 91925ffb08
commit f6fb34269f
1 changed files with 2 additions and 0 deletions

View File

@ -588,7 +588,9 @@ void hbThreadFuncUnexpectedStopped(void) {
static void *hbThreadFunc(void *param) {
setThreadName("hb");
#ifdef WINDOWS
atexit(hbThreadFuncUnexpectedStopped);
#endif
while (1) {
int8_t threadStop = atomic_val_compare_exchange_8(&clientHbMgr.threadStop, 1, 2);
if (1 == threadStop) {