diff options
author | Josh Blum | 2013-04-24 20:11:19 -0700 |
---|---|---|
committer | Josh Blum | 2013-04-24 20:11:19 -0700 |
commit | b0af51abf8681922d86ea8621a73a383fa7c50ba (patch) | |
tree | d0b3bb04d918a626a6d9e5425a594955cbf49390 /lib/block_actor.cpp | |
parent | cf930158eabb585552c9b2691370c5ceb7fc6d76 (diff) | |
download | sandhi-b0af51abf8681922d86ea8621a73a383fa7c50ba.tar.gz sandhi-b0af51abf8681922d86ea8621a73a383fa7c50ba.tar.bz2 sandhi-b0af51abf8681922d86ea8621a73a383fa7c50ba.zip |
gras: work on benchmarks w/ theron6 support
Diffstat (limited to 'lib/block_actor.cpp')
-rw-r--r-- | lib/block_actor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/block_actor.cpp b/lib/block_actor.cpp index 750e52d..fe7f79e 100644 --- a/lib/block_actor.cpp +++ b/lib/block_actor.cpp @@ -14,7 +14,7 @@ ThreadPoolConfig::ThreadPoolConfig(void) thread_count = std::max(size_t(2), thread_count); node_mask = 0; processor_mask = 0xffffffff; - yield_strategy = "STRONG"; + yield_strategy = "BLOCKING"; //environment variable override const char * gras_yield = getenv("GRAS_YIELD"); @@ -44,7 +44,7 @@ ThreadPool::ThreadPool(const ThreadPoolConfig &config) ); if (config.yield_strategy.empty()) params.mYieldStrategy = Theron::YIELD_STRATEGY_STRONG; - //else if (config.yield_strategy == "BLOCKING") params.mYieldStrategy = Theron::YIELD_STRATEGY_BLOCKING; + else if (config.yield_strategy == "BLOCKING") params.mYieldStrategy = Theron::YIELD_STRATEGY_BLOCKING; else if (config.yield_strategy == "POLITE") params.mYieldStrategy = Theron::YIELD_STRATEGY_POLITE; else if (config.yield_strategy == "STRONG") params.mYieldStrategy = Theron::YIELD_STRATEGY_STRONG; else if (config.yield_strategy == "AGGRESSIVE") params.mYieldStrategy = Theron::YIELD_STRATEGY_AGGRESSIVE; |