Skip to content

Commit

Permalink
core: remove #include "reactor.hh" from future-util.hh
Browse files Browse the repository at this point in the history
When future-util.hh is included in files included in reactor.hh (e.g. file.hh).

Signed-off-by: Vlad Zolotarov <[email protected]>
  • Loading branch information
Vlad Zolotarov authored and avikivity committed May 26, 2015
1 parent d115f9c commit 796c203
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/future-util.hh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@

#include "future.hh"
#include "shared_ptr.hh"
#include "reactor.hh"
#include <tuple>
#include <iterator>

extern __thread size_t task_quota;

// parallel_for_each - run tasks in parallel
//
// Given a range [@begin, @end) of objects, run func(*i) for each i in
Expand Down
1 change: 1 addition & 0 deletions core/scollectd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include "scollectd.hh"
#include "core/future-util.hh"
#include "core/reactor.hh"
#include "net/api.hh"
#include "scollectd_api.hh"

Expand Down
2 changes: 2 additions & 0 deletions tests/blkdiscard_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <algorithm>
#include "core/app-template.hh"
#include "core/future-util.hh"
#include "core/file.hh"
#include "core/reactor.hh"

namespace bpo = boost::program_options;

Expand Down
1 change: 1 addition & 0 deletions tests/test_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "core/app-template.hh"
#include "core/future-util.hh"
#include "core/reactor.hh"
#include "test_runner.hh"

static test_runner instance;
Expand Down
1 change: 1 addition & 0 deletions tests/test_runner.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <functional>
#include <atomic>
#include "core/future.hh"
#include "core/posix.hh"
#include "exchanger.hh"

class posix_thread;
Expand Down
2 changes: 2 additions & 0 deletions tests/udp_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include "core/app-template.hh"
#include "core/future-util.hh"
#include "core/reactor.hh"
#include "net/api.hh"

using namespace net;
using namespace std::chrono_literals;
Expand Down

0 comments on commit 796c203

Please sign in to comment.