GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Queuing commands from the GUI for the worker thread. More...
#include "octave-cmd.h"
Public Member Functions | |
octave_command_queue (void) | |
~octave_command_queue (void) | |
void | add_cmd (octave_cmd *cmd) |
Adds a new octave command to the command queue. More... | |
void | execute_command_callback (void) |
Callback routine for executing the command by the worker thread. More... | |
Private Attributes | |
QSemaphore | _processing |
QList< octave_cmd * > | _queue |
QMutex | _queue_mutex |
Queuing commands from the GUI for the worker thread.
Definition at line 103 of file octave-cmd.h.
|
inline |
Definition at line 109 of file octave-cmd.h.
|
inline |
Definition at line 113 of file octave-cmd.h.
void octave_command_queue::add_cmd | ( | octave_cmd * | cmd | ) |
Adds a new octave command to the command queue.
cmd | The octave command to be queued |
Definition at line 115 of file octave-cmd.cc.
References _processing, _queue, _queue_mutex, execute_command_callback(), and octave_link::post_event().
Referenced by main_window::closeEvent(), main_window::debug_continue(), main_window::debug_quit(), main_window::debug_step_into(), main_window::debug_step_out(), main_window::debug_step_over(), main_window::execute_command_in_terminal(), and main_window::run_file_callback().
void octave_command_queue::execute_command_callback | ( | void | ) |
Callback routine for executing the command by the worker thread.
Definition at line 128 of file octave-cmd.cc.
References _processing, _queue, _queue_mutex, octave_cmd::execute(), and octave_link::post_event().
Referenced by add_cmd().
|
private |
Definition at line 128 of file octave-cmd.h.
Referenced by add_cmd(), and execute_command_callback().
|
private |
Definition at line 127 of file octave-cmd.h.
Referenced by add_cmd(), and execute_command_callback().
|
private |
Definition at line 129 of file octave-cmd.h.
Referenced by add_cmd(), and execute_command_callback().