Ability to select the threadpool that will be used to start an Activity.

This commit is contained in:
Patrice Tarabbia 2013-05-23 23:27:11 -04:00
parent c59f8865ac
commit f7e24bf1e4

View File

@ -121,6 +121,11 @@ public:
void start()
/// Starts the activity by acquiring a
/// thread for it from the default thread pool.
{
start(ThreadPool::defaultPool());
}
void start(ThreadPool& pool)
{
FastMutex::ScopedLock lock(_mutex);
@ -131,7 +136,7 @@ public:
_running = true;
try
{
ThreadPool::defaultPool().start(*this);
pool.start(*this);
}
catch (...)
{