History

Switch to preprocessor macro for blocking invokes to capture function information

Brad Davis committed 9 years ago

Commit 6fc82bb1 parent 9c37b2839 files · +124 −118Browse files

Showing the changes to libraries/script-engine/src/RecordingScriptingInterface.cpp (1 of 39 files). Show all

Unified · Split

libraries/script-engine/src/RecordingScriptingInterface.cpp+8−8
@@ -99,7 +99,7 @@ void RecordingScriptingInterface::loadRecording(const QString& url, QScriptValue · 98 unmodified lines
9999
100100 void RecordingScriptingInterface::startPlaying() {
101101 if (QThread::currentThread() != thread()) {
102− hifi::qt::blockingInvokeMethod(this, "startPlaying");
102+ BLOCKING_INVOKE_METHOD(this, "startPlaying");
103103 return;
104104 }
105105
@@ -116,7 +116,7 @@ void RecordingScriptingInterface::setPlayerAudioOffset(float audioOffset) { · 10 unmodified lines
116116
117117 void RecordingScriptingInterface::setPlayerTime(float time) {
118118 if (QThread::currentThread() != thread()) {
119− hifi::qt::blockingInvokeMethod(this, "setPlayerTime", Q_ARG(float, time));
119+ BLOCKING_INVOKE_METHOD(this, "setPlayerTime", Q_ARG(float, time));
120120 return;
121121 }
122122 _player->seek(time);
@@ -148,7 +148,7 @@ void RecordingScriptingInterface::setPlayerUseSkeletonModel(bool useSkeletonMode · 25 unmodified lines
148148
149149 void RecordingScriptingInterface::pausePlayer() {
150150 if (QThread::currentThread() != thread()) {
151− hifi::qt::blockingInvokeMethod(this, "pausePlayer");
151+ BLOCKING_INVOKE_METHOD(this, "pausePlayer");
152152 return;
153153 }
154154 _player->pause();
@@ -156,7 +156,7 @@ void RecordingScriptingInterface::pausePlayer() { · 1 unmodified line
156156
157157 void RecordingScriptingInterface::stopPlaying() {
158158 if (QThread::currentThread() != thread()) {
159− hifi::qt::blockingInvokeMethod(this, "stopPlaying");
159+ BLOCKING_INVOKE_METHOD(this, "stopPlaying");
160160 return;
161161 }
162162 _player->stop();
@@ -177,7 +177,7 @@ void RecordingScriptingInterface::startRecording() { · 14 unmodified lines
177177 }
178178
179179 if (QThread::currentThread() != thread()) {
180− hifi::qt::blockingInvokeMethod(this, "startRecording");
180+ BLOCKING_INVOKE_METHOD(this, "startRecording");
181181 return;
182182 }
183183
@@ -200,7 +200,7 @@ QString RecordingScriptingInterface::getDefaultRecordingSaveDirectory() { · 16 unmodified lines
200200
201201 void RecordingScriptingInterface::saveRecording(const QString& filename) {
202202 if (QThread::currentThread() != thread()) {
203− hifi::qt::blockingInvokeMethod(this, "saveRecording",
203+ BLOCKING_INVOKE_METHOD(this, "saveRecording",
204204 Q_ARG(QString, filename));
205205 return;
206206 }
@@ -221,7 +221,7 @@ bool RecordingScriptingInterface::saveRecordingToAsset(QScriptValue getClipAtpUr · 14 unmodified lines
221221
222222 if (QThread::currentThread() != thread()) {
223223 bool result;
224− hifi::qt::blockingInvokeMethod(this, "saveRecordingToAsset",
224+ BLOCKING_INVOKE_METHOD(this, "saveRecordingToAsset",
225225 Q_RETURN_ARG(bool, result),
226226 Q_ARG(QScriptValue, getClipAtpUrl));
227227 return result;
@@ -258,7 +258,7 @@ bool RecordingScriptingInterface::saveRecordingToAsset(QScriptValue getClipAtpUr · 30 unmodified lines
258258
259259 void RecordingScriptingInterface::loadLastRecording() {
260260 if (QThread::currentThread() != thread()) {
261− hifi::qt::blockingInvokeMethod(this, "loadLastRecording");
261+ BLOCKING_INVOKE_METHOD(this, "loadLastRecording");
262262 return;
263263 }
264264