make sure Z->notice_event is locked

This commit is contained in:
Kezhu Wang
2012-08-05 16:50:03 +08:00
parent 058499446d
commit 38c3f50327

View File

@@ -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;
}
}