~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychInitialize/finish.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
% finish
2
 
3
 
% From MATLAB documentation: 
4
 
%
5
 
%   When MATLAB quits, it runs a script called finish.m, if it exists and
6
 
%   is on the MATLAB search path or in the current directory. This is a
7
 
%   file that you create yourself in order to have MATLAB perform any final
8
 
%   tasks just prior to terminating.
9
 
%
10
 
% OS X: ___________________________________________________________________
11
 
%
12
 
%   Finish checks to see if the OS X update process is running and restarts
13
 
%   it if it is not.  Priority and Rush shut down the update process when
14
 
%   raising Priority above 0.
15
 
%
16
 
% OS 9: ___________________________________________________________________
17
 
%
18
 
%   The Psychtoolbox does not provide finish.m.
19
 
%
20
 
% WINDOWS:_________________________________________________________________
21
 
%
22
 
%   The Psychtoolbox does not provide finish.m.
23
 
%
24
 
% _________________________________________________________________________
25
 
%
26
 
%  see also: PsychPriority, PsychRush, IsUpdateRunning, IsStartUpdateImplantedInFinish 
27
 
 
28
 
 
29
 
if(IsOSX)
30
 
    try
31
 
        % Try restarting update process if needed. As of OS/X 10.4.7, this
32
 
        % is not needed anymore...
33
 
        StartUpdateProcess;
34
 
    catch
35
 
        % No op. Matlab is about to shut down, so no point outputting any
36
 
        % warning here...
37
 
    end
38
 
end