Handler policy for tasks that are rejected upon a call to ThreadPoolExecutor::execute this class will attempt to run the task in the Thread that called the execute method unless the executor is shutdown in which case the task is not run and is destroyed. More...
#include <src/main/decaf/util/concurrent/ThreadPoolExecutor.h>

Public Member Functions | |
| CallerRunsPolicy () | |
| virtual | ~CallerRunsPolicy () |
| virtual void | rejectedExecution (decaf::lang::Runnable *task, ThreadPoolExecutor *executer DECAF_UNUSED) |
Handler policy for tasks that are rejected upon a call to ThreadPoolExecutor::execute this class will attempt to run the task in the Thread that called the execute method unless the executor is shutdown in which case the task is not run and is destroyed.
| decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy::CallerRunsPolicy | ( | ) | [inline] |
| virtual decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy::~CallerRunsPolicy | ( | ) | [inline, virtual] |
| virtual void decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy::rejectedExecution | ( | decaf::lang::Runnable * | task, | |
| ThreadPoolExecutor *executer | DECAF_UNUSED | |||
| ) | [inline, virtual] |
References decaf::lang::Runnable::run().
1.6.1