Another JEInterface update
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
function int = stopOptimize(int)
|
||||
% Stop a running optimization
|
||||
function int = stopOptimize(int, varargin)
|
||||
% Stop a running optimization.
|
||||
% stopOptimize(JI [,'kill'])
|
||||
% If 'kill' is given as second argument, the mediator thread is
|
||||
% stopped, relevant if optimization was stopped using CTRL-C and the
|
||||
% mediator is a running zombie.
|
||||
|
||||
global JEMediator
|
||||
|
||||
%disp('in Stop!');
|
||||
int.mp.stopOptimize;
|
||||
%if (~isempty(int.mediator))
|
||||
% int.mediator.quit; % just in case
|
||||
% int.mediator='';
|
||||
%end
|
||||
|
||||
if (nargin > 1) && (ischar(varargin{1}) && (strcmp(varargin{1},'kill')==1))
|
||||
if (~isempty(JEMediator))
|
||||
disp('killing mediator...');
|
||||
JEMediator.quit; % just in case
|
||||
JEMediator='';
|
||||
clear global JEMediator;
|
||||
else
|
||||
disp('no mediator to kill');
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user