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