diff options
Diffstat (limited to 'fnet/src/vespa/fnet/transport.h')
-rw-r--r-- | fnet/src/vespa/fnet/transport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fnet/src/vespa/fnet/transport.h b/fnet/src/vespa/fnet/transport.h index 29f1fb2144f..45a2122c9c9 100644 --- a/fnet/src/vespa/fnet/transport.h +++ b/fnet/src/vespa/fnet/transport.h @@ -31,6 +31,7 @@ private: vespalib::CryptoEngine::SP _crypto_engine; std::unique_ptr<vespalib::SyncableThreadExecutor> _work_pool; Threads _threads; + vespalib::Executor::OptimizeFor _optimizeFor; public: /** @@ -52,6 +53,11 @@ public: : FNET_Transport(vespalib::AsyncResolver::get_shared(), vespalib::CryptoEngine::get_default(), 1) {} ~FNET_Transport(); + vespalib::Executor::OptimizeFor optimizeFor() const { return _optimizeFor; } + void optimizeFor(vespalib::Executor::OptimizeFor optimizeFor_in) { + _optimizeFor = optimizeFor_in; + } + /** * Try to execute the given task on the internal work pool * executor (post). If the executor has been closed or there is |