Index: trunk/willow/src/willow/wnet.cc |
— | — | @@ -548,7 +548,9 @@ |
549 | 549 | void |
550 | 550 | make_event_base(void) |
551 | 551 | { |
| 552 | +static lockable meb_lock; |
552 | 553 | if (evb == NULL) { |
| 554 | + HOLDING(meb_lock); |
553 | 555 | evb = (event_base *)event_init(); |
554 | 556 | event_base_priority_init(evb, prio_max); |
555 | 557 | signal_set(&ev_sigint, SIGINT, sig_exit, NULL); |