Add loopOnce() method to folly::EventBase
authorStepan Palamarchuk <stepan@fb.com>
Mon, 31 Mar 2014 21:19:54 +0000 (14:19 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 4 Apr 2014 02:54:15 +0000 (19:54 -0700)
commit2d08baf60cbd36d4bd0a112b574a8b755eeaa638
tree49f96ef2e1f63b8a250eb720caa113d831a1a791
parent361946715a2d1a88b98d3f3ab30f7313262df96e
Add loopOnce() method to folly::EventBase

Summary: Add loopOnce() method which provides functionality similar to event_base_loop(base, EVLOOP_ONCE);

Test Plan: fbmake

Reviewed By: simpkins@fb.com

FB internal diff: D1249753
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h