X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fexperimental%2FFutureDAG.h;h=bf14f33e9cb4770af69bf85adb8f2ef9816e992f;hb=214b26f334d1a06515211918fc4a760ae50e6a33;hp=3f08fff04d11b645695c8ca19c9d2dad9b465479;hpb=ef50b1895bd195b70af36e82e6db5d6df64f6051;p=folly.git diff --git a/folly/experimental/FutureDAG.h b/folly/experimental/FutureDAG.h index 3f08fff0..bf14f33e 100644 --- a/folly/experimental/FutureDAG.h +++ b/folly/experimental/FutureDAG.h @@ -1,5 +1,5 @@ /* - * Copyright 2016 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -210,19 +210,19 @@ class FutureDAGFunctor { std::vector dep_states; T result() { return state; - }; + } // execReset() runs DAG & clears all nodes except for source void execReset() { this->dag->go().get(); this->dag->reset(); - }; + } void exec() { this->dag->go().get(); - }; - virtual void operator()(){}; + } + virtual void operator()(){} explicit FutureDAGFunctor(T init_val) : state(init_val) {} FutureDAGFunctor() : state() {} - virtual ~FutureDAGFunctor(){}; + virtual ~FutureDAGFunctor(){} }; } // folly