mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
bugfix: Issue #38
This commit is contained in:
@@ -244,8 +244,13 @@ skynet_mq_pushglobal(struct message_queue *queue) {
|
||||
|
||||
void
|
||||
skynet_mq_mark_release(struct message_queue *q) {
|
||||
LOCK(q)
|
||||
assert(q->release == 0);
|
||||
q->release = 1;
|
||||
if (q->in_global != MQ_IN_GLOBAL) {
|
||||
skynet_globalmq_push(q);
|
||||
}
|
||||
UNLOCK(q)
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user