Mercurial > hg > octave-nkf
diff gui/src/backend/OctaveLink.h @ 13683:25dc40d24a44
Renamed VariablesDockWidget to WorkspaceView and optimized memory footprint for 30%.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Fri, 30 Sep 2011 12:34:37 +0200 |
parents | c0e66d6e3dc8 |
children | faece6b2ab90 |
line wrap: on
line diff
--- a/gui/src/backend/OctaveLink.h +++ b/gui/src/backend/OctaveLink.h @@ -96,6 +96,14 @@ void launchOctave (); void terminateOctave (); + void acquireSymbolTable () { m_symbolTableSemaphore->acquire (); } + void releaseSymbolTable () { m_symbolTableSemaphore->release (); } + + /** + * For performance reasons this is not thread safe. Before you use this, + * acquire a lock with acquireSymbolTable and releaseSymbolTable. + */ + QList < SymbolRecord > symbolTable (); /** * Returns a copy of the current symbol table buffer. @@ -103,22 +111,12 @@ */ QList < SymbolRecord > copyCurrentSymbolTable (); - void - updateHistoryModel (); - - QStringListModel * - historyModel (); - - /** - * Updates the current symbol table with new data - * from octave. - */ - void - fetchSymbolTable (); + void updateHistoryModel (); + QStringListModel *historyModel (); + void emitSymbolTableChanged() { emit symbolTableChanged(); } signals: - void - symbolTableChanged (); + void symbolTableChanged (); private: OctaveLink ();