blob: 1e6d87615793a99ea8dde8ed5a7c36c937555476 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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.
|