GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
octave_command_queue Class Reference

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

#include "octave-cmd.h"

Inheritance diagram for octave_command_queue:
Inheritance graph
[legend]
Collaboration diagram for octave_command_queue:
Collaboration graph
[legend]

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
 

Detailed Description

Queuing commands from the GUI for the worker thread.

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

Constructor & Destructor Documentation

octave_command_queue::octave_command_queue ( void  )
inline

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

octave_command_queue::~octave_command_queue ( void  )
inline

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

Member Function Documentation

void octave_command_queue::add_cmd ( octave_cmd cmd)
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().

Member Data Documentation

QSemaphore octave_command_queue::_processing
private

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

Referenced by add_cmd(), and execute_command_callback().

QList<octave_cmd *> octave_command_queue::_queue
private

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

Referenced by add_cmd(), and execute_command_callback().

QMutex octave_command_queue::_queue_mutex
private

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

Referenced by add_cmd(), and execute_command_callback().


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