Split EventBaseThread from ScopedEventBaseThread
authorYedidya Feldblum <yfeldblum@fb.com>
Sat, 17 Dec 2016 04:20:35 +0000 (20:20 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 17 Dec 2016 04:32:54 +0000 (20:32 -0800)
commite5cb9b3d4ce31408239c2d316520ddcc4758a22e
tree79bb2a508d5ec9d2e04c02bc31126d220c0492d1
parentd496cae9862596f16803c9a7f9d820ab6a6ae2ae
Split EventBaseThread from ScopedEventBaseThread

Summary:
[Folly] Split `EventBaseThread` from `ScopedEventBaseThread`.

Now `ScopedEventBaseThread` is really scoped and immovable, while `EventBaseThread` is movable and can be started and stopped.

Users which will never move, and will never start or stop, the `ScopedEventBaseThread` can continue using it. Users which need to move, or which need to start and stop, the object will use `EventBaseThread` instead.

Reviewed By: andriigrynenko

Differential Revision: D4338447

fbshipit-source-id: 57c186630bc199a7a7b7223b1fcb077ce3d86743
folly/Makefile.am
folly/io/async/EventBaseThread.cpp [new file with mode: 0644]
folly/io/async/EventBaseThread.h [new file with mode: 0644]
folly/io/async/ScopedEventBaseThread.cpp
folly/io/async/ScopedEventBaseThread.h
folly/io/async/test/EventBaseThreadTest.cpp [new file with mode: 0644]
folly/io/async/test/ScopedEventBaseThreadTest.cpp