Changeset 294 in flair-src for trunk/lib/FlairSensorActuator/src/VrpnClient.cpp
- Timestamp:
- 01/09/19 15:38:32 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/VrpnClient.cpp
r232 r294 39 39 : Thread(getFrameworkManager(), name, priority) { 40 40 if (singleton != NULL) { 41 Err("VrpnClient must be instanced only one time\n"); 42 return; 41 SimpleWarn("VrpnClient should be instanced only one time!\n"); 42 SimpleWarn("Next calls to GetVrpnClient() will return the first created VrpnClient (%s)\n",singleton->ObjectName().c_str()); 43 } else { 44 singleton = this; 43 45 } 44 46 45 singleton = this;46 47 pimpl_ = new VrpnClient_impl(this, name, address); 47 48 } … … 52 53 : Thread(getFrameworkManager(), name, priority) { 53 54 if (singleton != NULL) { 54 Err("VrpnClient must be instanced only one time\n"); 55 return; 55 SimpleWarn("VrpnClient should be instanced only one time!\n"); 56 SimpleWarn("Next calls to GetVrpnClient() will return the first created VrpnClient (%s)\n",singleton->ObjectName().c_str()); 57 } else { 58 singleton = this; 56 59 } 57 58 singleton = this; 60 59 61 pimpl_ = new VrpnClient_impl(this, name, serialport, us_period); 60 62 }
Note:
See TracChangeset
for help on using the changeset viewer.