mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
fix issue #52
This commit is contained in:
@@ -149,7 +149,7 @@ _start(int thread) {
|
|||||||
m->m = malloc(thread * sizeof(struct skynet_monitor *));
|
m->m = malloc(thread * sizeof(struct skynet_monitor *));
|
||||||
int i;
|
int i;
|
||||||
for (i=0;i<thread;i++) {
|
for (i=0;i<thread;i++) {
|
||||||
m->m[i] = skynet_monitor_new(i);
|
m->m[i] = skynet_monitor_new();
|
||||||
}
|
}
|
||||||
if (pthread_mutex_init(&m->mutex, NULL)) {
|
if (pthread_mutex_init(&m->mutex, NULL)) {
|
||||||
fprintf(stderr, "Init mutex error");
|
fprintf(stderr, "Init mutex error");
|
||||||
|
|||||||
Reference in New Issue
Block a user