fix(os): run case on win
This commit is contained in:
parent
91925ffb08
commit
f6fb34269f
|
@ -588,7 +588,9 @@ void hbThreadFuncUnexpectedStopped(void) {
|
||||||
|
|
||||||
static void *hbThreadFunc(void *param) {
|
static void *hbThreadFunc(void *param) {
|
||||||
setThreadName("hb");
|
setThreadName("hb");
|
||||||
|
#ifdef WINDOWS
|
||||||
atexit(hbThreadFuncUnexpectedStopped);
|
atexit(hbThreadFuncUnexpectedStopped);
|
||||||
|
#endif
|
||||||
while (1) {
|
while (1) {
|
||||||
int8_t threadStop = atomic_val_compare_exchange_8(&clientHbMgr.threadStop, 1, 2);
|
int8_t threadStop = atomic_val_compare_exchange_8(&clientHbMgr.threadStop, 1, 2);
|
||||||
if (1 == threadStop) {
|
if (1 == threadStop) {
|
||||||
|
|
Loading…
Reference in New Issue