Commit Graph

7 Commits

Author SHA1 Message Date
Jakob Progsch
978cf0ed97 Removed unnecessary forward declaration 2013-03-31 01:13:12 +01:00
Jakob Progsch
951db758d7 Removed Worker class in favor of a lambda capturing this 2013-03-29 23:10:56 +01:00
Jakob Progsch
5a8ca1709d Reformated excessively long lines 2013-03-29 16:51:26 +01:00
Jakob Progsch
41355c071a Pass task by universal reference and variadics
As suggested by daniel-j-h tasks are now taken by
universal reference and forwarded with std::forward.
Also enqueue takes a variadic argument list and binds
the arguments to the task.
2013-03-29 16:26:35 +01:00
Jakob Progsch
5d0ca72d50 Simplifications and fixes
Replaced deque by a queue (which by default uses a deque).
Simplified the task packaging as suggested by Ang3lus in issue #4.
The destructor now waits for the queue to empty but throws
a std::runtime_error if enqueue is called on the stopped pool
(see issue #3).
2013-02-17 11:10:40 +01:00
Jakob Progsch
3987b0972f reorganised files 2012-10-16 12:32:03 +02:00
Jakob Progsch
0a86c00615 initial commit 2012-10-05 02:05:44 +02:00