X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fio%2Fasync%2FEventBase.cpp;h=d0d58def06e20e4d5411155b9bff918680612c4d;hp=8d6c03f211d0c2ddad2a95def05e1152b99ac6ff;hb=7de5a995c46b4ef706eda82483fe7d25f33a11ea;hpb=049e3d99a99a1567574fb57c34280565eaf4ff1e diff --git a/folly/io/async/EventBase.cpp b/folly/io/async/EventBase.cpp index 8d6c03f2..d0d58def 100644 --- a/folly/io/async/EventBase.cpp +++ b/folly/io/async/EventBase.cpp @@ -183,12 +183,10 @@ EventBase::~EventBase() { event_base_free(evb_); } - { - std::lock_guard lock(localStorageMutex_); - for (auto storage : localStorageToDtor_) { - storage->onEventBaseDestruction(*this); - } + for (auto storage : localStorageToDtor_) { + storage->onEventBaseDestruction(*this); } + VLOG(5) << "EventBase(): Destroyed."; }