mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
CHECK ABORT every message dispatch
This commit is contained in:
@@ -125,7 +125,6 @@ _worker(void *p) {
|
|||||||
skynet_initthread(THREAD_WORKER);
|
skynet_initthread(THREAD_WORKER);
|
||||||
struct message_queue * q = NULL;
|
struct message_queue * q = NULL;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
CHECK_ABORT
|
|
||||||
q = skynet_context_message_dispatch(sm, q, weight);
|
q = skynet_context_message_dispatch(sm, q, weight);
|
||||||
if (q == NULL) {
|
if (q == NULL) {
|
||||||
if (pthread_mutex_lock(&m->mutex) == 0) {
|
if (pthread_mutex_lock(&m->mutex) == 0) {
|
||||||
@@ -140,6 +139,7 @@ _worker(void *p) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
CHECK_ABORT
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user