Queuing octave commands from the GUI for the worker thread. More...
#include "octave-cmd.h"
Public Member Functions | |
octave_command_queue (void) | |
~octave_command_queue (void)=default | |
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 | m_processing |
QList< octave_cmd * > | m_queue |
QMutex | m_queue_mutex |
Queuing octave commands from the GUI for the worker thread.
Definition at line 90 of file octave-cmd.h.
|
inline |
Definition at line 96 of file octave-cmd.h.
|
default |
void octave::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 101 of file octave-cmd.cc.
References execute_command_callback(), m_processing, m_queue, m_queue_mutex, and octave_link::post_event().
Referenced by octave::main_window::closeEvent(), octave::main_window::debug_continue(), octave::main_window::debug_quit(), octave::main_window::debug_step_into(), octave::main_window::debug_step_out(), octave::main_window::debug_step_over(), octave::main_window::execute_command_in_terminal(), and octave::main_window::run_file_in_terminal().
void octave::octave_command_queue::execute_command_callback | ( | void | ) |
Callback routine for executing the command by the worker thread.
Definition at line 113 of file octave-cmd.cc.
References octave::octave_cmd::execute(), m_processing, m_queue, m_queue_mutex, and octave_link::post_event().
Referenced by add_cmd().
|
private |
Definition at line 116 of file octave-cmd.h.
Referenced by add_cmd(), and execute_command_callback().
|
private |
Definition at line 115 of file octave-cmd.h.
Referenced by add_cmd(), and execute_command_callback().
|
private |
Definition at line 117 of file octave-cmd.h.
Referenced by add_cmd(), and execute_command_callback().