add mutex to EventScheduler