Move event_base_new out of critical region
authorHaijun Zhu <haijunz@fb.com>
Sun, 27 Mar 2016 07:12:23 +0000 (00:12 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Sun, 27 Mar 2016 07:20:21 +0000 (00:20 -0700)
commita103b7e715d824b770c11e9106a4d5ec1ee448cf
tree47169466ef87fd39c58c5deef2f04f3bcfbcc455
parentecf14e67a9f98b0548ce119f400b66e9a2c58a69
Move event_base_new out of critical region

Summary:event_base_new does not change the global current_base so no need to
call it with the mutex held.

Reviewed By: chadparry

Differential Revision: D3055963

fb-gh-sync-id: df420b189ef0d7d56eda5ad6c32e03b195804e6b
fbshipit-source-id: df420b189ef0d7d56eda5ad6c32e03b195804e6b
folly/io/async/EventBase.cpp