GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libgui
src
octave-interpreter.cc
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2013-2015 John W. Eaton
4
Copyright (C) 2011-2015 Jacob Dawid
5
6
This file is part of Octave.
7
8
Octave is free software; you can redistribute it and/or modify it
9
under the terms of the GNU General Public License as published by the
10
Free Software Foundation; either version 3 of the License, or (at your
11
option) any later version.
12
13
Octave is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16
for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Octave; see the file COPYING. If not, see
20
<http://www.gnu.org/licenses/>.
21
22
*/
23
24
#ifdef HAVE_CONFIG_H
25
#include <config.h>
26
#endif
27
28
#include <string>
29
30
#include <signal.h>
31
32
#include "
octave.h
"
33
34
#include "
octave-interpreter.h
"
35
36
void
37
octave_interpreter::execute
(
void
)
38
{
39
thread_manager
.
register_current_thread
();
40
41
octave_thread_manager::unblock_interrupt_signal
();
42
43
octave_initialize_interpreter
(
octave_cmdline_argc
,
octave_cmdline_argv
,
44
octave_embedded
);
45
46
emit
octave_ready_signal
();
47
48
octave_execute_interpreter
();
49
}
50
51
void
52
octave_interpreter::interrupt
(
void
)
53
{
54
thread_manager
.
interrupt
();
55
}
octave-interpreter.h
octave_thread_manager::interrupt
void interrupt(void)
Definition:
thread-manager.h:79
octave_execute_interpreter
int octave_execute_interpreter(void)
Definition:
octave.cc:844
octave_interpreter::interrupt
void interrupt(void)
Definition:
octave-interpreter.cc:52
octave_embedded
int octave_embedded
Definition:
octave.cc:93
octave_thread_manager::unblock_interrupt_signal
static void unblock_interrupt_signal(void)
Definition:
thread-manager.cc:130
octave_cmdline_argv
char ** octave_cmdline_argv
Definition:
octave.cc:92
octave_initialize_interpreter
void octave_initialize_interpreter(int argc, char **argv, int embedded)
Definition:
octave.cc:725
octave_interpreter::execute
void execute(void)
Definition:
octave-interpreter.cc:37
octave_thread_manager::register_current_thread
void register_current_thread(void)
Definition:
thread-manager.h:77
octave_interpreter::octave_ready_signal
void octave_ready_signal()
Definition:
moc-octave-interpreter.cc:105
octave_cmdline_argc
int octave_cmdline_argc
Definition:
octave.cc:91
octave.h
octave_interpreter::thread_manager
octave_thread_manager thread_manager
Definition:
octave-interpreter.h:55
Generated on Thu Jun 4 2015 23:30:11 for GNU Octave by
1.8.8