mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 07:15:30 +02:00
expose Agent.stop() to JS to complete execution
This commit is contained in:
parent
bb0d28141a
commit
d401cf39ce
2 changed files with 8 additions and 2 deletions
|
@ -24,6 +24,10 @@ Agent::Agent(const unsigned char* dataBuffer, int numBytes) :
|
|||
|
||||
}
|
||||
|
||||
void Agent::stop() {
|
||||
_shouldStop = true;
|
||||
}
|
||||
|
||||
static size_t writeScriptDataToString(void *contents, size_t size, size_t nmemb, void *userdata) {
|
||||
size_t realSize = size * nmemb;
|
||||
|
||||
|
|
|
@ -19,11 +19,13 @@ class Agent : public Assignment {
|
|||
public:
|
||||
Agent(const unsigned char* dataBuffer, int numBytes);
|
||||
|
||||
bool volatile _shouldStop;
|
||||
|
||||
void run();
|
||||
public slots:
|
||||
void stop();
|
||||
signals:
|
||||
void willSendVisualDataCallback();
|
||||
private:
|
||||
bool volatile _shouldStop;
|
||||
};
|
||||
|
||||
#endif /* defined(__hifi__Operative__) */
|
||||
|
|
Loading…
Reference in a new issue