mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
make sure Z->notice_event is locked
This commit is contained in:
@@ -550,6 +550,7 @@ _goback:
|
|||||||
// double check
|
// double check
|
||||||
if (!skynet_remotemq_pop(Z->queue,&msg)) {
|
if (!skynet_remotemq_pop(Z->queue,&msg)) {
|
||||||
printf("goback %x\n",msg.destination);
|
printf("goback %x\n",msg.destination);
|
||||||
|
__sync_lock_test_and_set(&Z->notice_event, 1);
|
||||||
goto _goback;
|
goto _goback;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user