File: finish.m

package info (click to toggle)
psychtoolbox-3 3.0.9%2Bsvn2579.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,408 kB
  • sloc: ansic: 73,310; cpp: 11,139; objc: 3,129; sh: 1,669; python: 382; php: 272; makefile: 172; java: 113
file content (38 lines) | stat: -rw-r--r-- 1,267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% finish
% 
% From MATLAB documentation: 
%
%   When MATLAB quits, it runs a script called finish.m, if it exists and
%   is on the MATLAB search path or in the current directory. This is a
%   file that you create yourself in order to have MATLAB perform any final
%   tasks just prior to terminating.
%
% OS X: ___________________________________________________________________
%
%   Finish checks to see if the OS X update process is running and restarts
%   it if it is not.  Priority and Rush shut down the update process when
%   raising Priority above 0.
%
% OS 9: ___________________________________________________________________
%
%   The Psychtoolbox does not provide finish.m.
%
% WINDOWS:_________________________________________________________________
%
%   The Psychtoolbox does not provide finish.m.
%
% _________________________________________________________________________
%
%  see also: PsychPriority, PsychRush, IsUpdateRunning, IsStartUpdateImplantedInFinish 


if(IsOSX)
    try
        % Try restarting update process if needed. As of OS/X 10.4.7, this
        % is not needed anymore...
        StartUpdateProcess;
    catch
        % No op. Matlab is about to shut down, so no point outputting any
        % warning here...
    end
end