IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
parallel_close.m
Go to the documentation of this file.
1 %> @ingroup globals parallelgroup
2 %> @file
3 %> @brief Closes the "MATLAB pool"
4 function parallel_close()
6 global PARALLEL;
7 if PARALLEL.open_count > 0
8  PARALLEL.open_count = PARALLEL.open_count-1;
9 end;
10 if PARALLEL.open_count <= 0
11  if matlabpool('size') > 0
12  matlabpool('close', 'force');
13  end;
14 end;
function parallel_assert()
function parallel_close()