Commit Graph

6 Commits

Author SHA1 Message Date
Kjistóf 6e26ad2bf0 made change of commit b997641ba4 template-based: no runtime cost 2016-12-01 22:47:02 +01:00
Kjistóf caafcfbaf9 in loop(), the std::function is now reset after the task is executed 2016-12-01 22:47:02 +01:00
Kjistóf 923680f44b abandoned my template based approach of tackling code dupe. closes #1.
I've decided, that the approach was too complex, you can look at the
code in commit f4eead282f, it's some of
the worst template-magic I have ever written and it didn't even work in
that state. now it is handled simply via a bool parameter, the compiler
should optimize it away anyway
2016-12-01 22:46:49 +01:00
Kjistóf f4eead282f started working on template-policy based implementation of add_task(). 2016-11-27 18:27:06 +01:00
Kjistóf 4cd6eb4e2f added missing std::forwards to decltype based stuff
the previous version could have caused some minor trouble in extreme
edge-cases
2016-11-27 17:58:47 +01:00
Kjistóf ccb0173877 refactored code intho thread_pool.hpp & test.cpp for testing. 2016-11-27 17:54:55 +01:00