Commit Graph

14 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
Kjistóf 57ce1f25d3 added a TODO, regarding the code-dupe going on in priority_task() methods 2016-11-22 17:35:57 +01:00
Kjistóf c8e6693754 added no warranty clause to code, just to be safe from idiots 2016-11-18 23:07:49 +01:00
Kjistóf a6b511a2f0 made small changes to resolve comparison of unsigned and regular ints 2016-11-12 10:55:22 +01:00
Kjistóf 347c0efb96 made CMakeLists.txt a bit nicer (still need to do something about boost) 2016-11-12 10:54:49 +01:00
Kjistóf 3f2587c9e8 relicensed code under WTFPL 2016-11-12 10:43:18 +01:00
Kjistóf 7576c5a0cb added build folder & .DS_Store to .gitignore 2016-11-09 20:44:33 +01:00
Kjistóf 80f56f53d0 added new test, and refactored old into a method, planned others 2016-05-02 17:50:37 +02:00
Kjistóf e8baee10bc initial commit 2016-05-02 16:51:45 +02:00