3
0
Fork 0
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:
Stephen Birarda 2013-10-01 11:44:07 -07:00
parent bb0d28141a
commit d401cf39ce
2 changed files with 8 additions and 2 deletions
assignment-client/src

View file

@ -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;

View file

@ -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__) */