Copyright (c) 2011 Michael Ruflin, Andr� Locher, Claudia von Bastian.
This file is part of Tatool.
Tatool is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Tatool is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Tatool. If not, see <http://www.gnu.org/licenses/>.
Blocking executable element implementation
This implementation blocks the executable thread until finishExecution is called.
Prior to calling finishExecution, a lock needs to be acquired. This way each thread
finishing can first check whether it is "the first" or simply abort its operation in
case it is not.
Calls startExecutionAWT on the awt thread.
To be implemented. Called at the start of the executable execution.
Calls cancelExecutionAWT on the awt thread.
cancelExecution called in the awt thread.