summarylogtreecommitdiffstats
path: root/fix_pool_schedule.patch
diff options
context:
space:
mode:
authorBen Widawsky2015-06-12 23:56:24 -0700
committerBen Widawsky2015-06-12 23:57:43 -0700
commite2217a0f61bd0eb986b0f247801caba486ec5b14 (patch)
tree9ce1ef4abcc0987ba1476fee21d185eda0e3bb7e /fix_pool_schedule.patch
downloadaur-e2217a0f61bd0eb986b0f247801caba486ec5b14.tar.gz
Initial import
Diffstat (limited to 'fix_pool_schedule.patch')
-rw-r--r--fix_pool_schedule.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/fix_pool_schedule.patch b/fix_pool_schedule.patch
new file mode 100644
index 000000000000..44b576118c87
--- /dev/null
+++ b/fix_pool_schedule.patch
@@ -0,0 +1,12 @@
+diff -aur threadpool-0_2_5-src.orig/threadpool/boost/threadpool/pool_adaptors.hpp threadpool-0_2_5-src/threadpool/boost/threadpool/pool_adaptors.hpp
+--- threadpool-0_2_5-src.orig/threadpool/boost/threadpool/pool_adaptors.hpp 2015-03-17 21:42:28.561832318 -0700
++++ threadpool-0_2_5-src/threadpool/boost/threadpool/pool_adaptors.hpp 2015-03-17 21:42:49.575073838 -0700
+@@ -35,7 +35,7 @@
+ template<typename Pool, typename Runnable>
+ bool schedule(Pool& pool, shared_ptr<Runnable> const & obj)
+ {
+- return pool->schedule(bind(&Runnable::run, obj));
++ return pool.schedule(bind(&Runnable::run, obj));
+ }
+
+ /*! Schedules a task for asynchronous execution. The task will be executed once only.