public final class SynchronizedExecutor
extends Object
An Executor which executes tasks on the caller thread.
The tasks will be executed synchronously, so no overlapping between two tasks running on different
threads will ever occur.
Calling threads might be suspended.
Executing a task has the same memory semantics as locking and releasing a
java.util.concurrent.locks.Lock.