Changeset 6100 in ntrip for trunk/BNC/src/PPP_free/pppClient.cpp
- Timestamp:
- Sep 8, 2014, 9:02:33 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/pppClient.cpp
r6099 r6100 44 44 45 45 #include "pppClient.h" 46 #include "pppFilter.h"47 46 #include "bncephuser.h" 48 47 #include "bncutils.h" … … 50 49 using namespace BNC_PPP; 51 50 using namespace std; 52 53 // Global variable holding thread-specific pointers54 //////////////////////////////////////////////////////////////////////////////55 QThreadStorage<t_pppClient*> CLIENTS;56 57 // Static function returning thread-specific pointer58 //////////////////////////////////////////////////////////////////////////////59 t_pppClient* t_pppClient::instance() {60 return CLIENTS.localData();61 }62 51 63 52 // Constructor … … 70 59 _log = new ostringstream(); 71 60 _ephUser = new bncEphUser(false); 72 _staID = QByteArray(_opt->_roverName.c_str());73 74 CLIENTS.setLocalData(this); // CLIENTS takes ownership over "this"75 61 } 76 62
Note:
See TracChangeset
for help on using the changeset viewer.