GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::octave_command_queue Class Reference

Queuing octave commands from the GUI for the worker thread. More...

#include "octave-cmd.h"

Inheritance diagram for octave::octave_command_queue:
Collaboration diagram for octave::octave_command_queue:

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
 

Detailed Description

Queuing octave commands from the GUI for the worker thread.

Definition at line 90 of file octave-cmd.h.

Constructor & Destructor Documentation

◆ octave_command_queue()

octave::octave_command_queue::octave_command_queue ( void  )
inline

Definition at line 96 of file octave-cmd.h.

◆ ~octave_command_queue()

octave::octave_command_queue::~octave_command_queue ( void  )
default

Member Function Documentation

◆ add_cmd()

◆ execute_command_callback()

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().

Member Data Documentation

◆ m_processing

QSemaphore octave::octave_command_queue::m_processing
private

Definition at line 116 of file octave-cmd.h.

Referenced by add_cmd(), and execute_command_callback().

◆ m_queue

QList<octave_cmd *> octave::octave_command_queue::m_queue
private

Definition at line 115 of file octave-cmd.h.

Referenced by add_cmd(), and execute_command_callback().

◆ m_queue_mutex

QMutex octave::octave_command_queue::m_queue_mutex
private

Definition at line 117 of file octave-cmd.h.

Referenced by add_cmd(), and execute_command_callback().


The documentation for this class was generated from the following files: