X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2FExecutor.h;h=a2ac0d6358089e7f4330f626180f125ebdb78c49;hp=688662108869067cca46c2ca809f5223cc37839f;hb=d41f4cc9159534057382a982cb68eeed3f4db6cb;hpb=43200974b7115bfd55175278607f3892a84b06be diff --git a/folly/Executor.h b/folly/Executor.h index 68866210..a2ac0d63 100644 --- a/folly/Executor.h +++ b/folly/Executor.h @@ -59,6 +59,10 @@ class Executor { return executor_ != nullptr; } + Executor* get() const { + return executor_.get(); + } + private: friend class Executor; explicit KeepAlive(folly::Executor* executor) : executor_(executor) {}