mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +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 *));
|
||||
int 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)) {
|
||||
fprintf(stderr, "Init mutex error");
|
||||
|
||||
Reference in New Issue
Block a user