Skip to content

Commit 1021d4f

Browse files
committed
StressTestofxOscReceiver: better scope test
1 parent e8b5467 commit 1021d4f

File tree

1 file changed

+4
-3
lines changed
  • apps/devApps/StressofxOscReceiver/src

1 file changed

+4
-3
lines changed

apps/devApps/StressofxOscReceiver/src/ofApp.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "ofApp.h"
22

3-
#define USE_EXPLICIT_FUNCTION 1
3+
//#define USE_EXPLICIT_FUNCTION 1
44

55
#define INSTANTLY_OUT_OF_SCOPE 1
66

@@ -11,8 +11,9 @@ void ofApp::setup(){
1111
ofSetVerticalSync(false);
1212

1313
#ifdef INSTANTLY_OUT_OF_SCOPE
14-
ofLogNotice("will hang");
15-
ofxOscReceiver r;
14+
ofLogNotice("will hang if thread problem");
15+
std::unique_ptr<ofxOscReceiver> r = std::make_unique<ofxOscReceiver>();
16+
r = std::make_unique<ofxOscReceiver>();
1617
#endif
1718
ofLogNotice("ready to roll");
1819

0 commit comments

Comments
 (0)