added a vector containing all executed scripts for this session and method to get it.

added a call to sending of scripts via parallel connection as soon as they are executed.
This commit is contained in:
Joakim Kilby
2015-06-23 09:34:34 +02:00
parent b2b7563018
commit fabbd3c1e8
2 changed files with 20 additions and 2 deletions

View File

@@ -78,6 +78,8 @@ public:
void preSynchronization();
void queueScript(const std::string &script);
std::vector<std::string> executedScripts();
std::vector<std::string> allLuaFunctions() const;
@@ -98,6 +100,10 @@ private:
std::vector<std::string> _queuedScripts;
std::vector<std::string> _receivedScripts;
std::string _currentSyncedScript;
//parallel variables @TODO make a more permanent solution to this - JK
std::vector<std::string> _executedScripts;
std::mutex _executedScriptsMutex;
};
} // namespace scripting