Clean up runBeforeLoop API
authorDave Watson <davejwatson@fb.com>
Thu, 13 Nov 2014 20:51:43 +0000 (12:51 -0800)
committerDave Watson <davejwatson@fb.com>
Wed, 19 Nov 2014 20:53:09 +0000 (12:53 -0800)
commit998b419afe824049bf539699ca1968648db13e18
tree004bce290f73c23f672192d00e221307de28db26
parent5e80856a1c8a52fc32a9d2eb776aaace0ca61182
Clean up runBeforeLoop API

Summary: Clean up API per stepan's comments in D1641057: runBeforeLoop callbacks should be run before the if block, so runInLoop calls will work.

Test Plan: added unittest

Reviewed By: hans@fb.com

Subscribers: trunkagent, doug, alandau, bmatheny, njormrod, mshneer, folly-diffs@

FB internal diff: D1679773

Signature: t1:1679773:1415916488:f20dd98bf40dd4cb19a4b11875dc0c9fa3e7870e

Blame Revision: D1641057
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/test/EventBaseTest.cpp