Changeset 6088 in ntrip for trunk/BNC/src/PPP_free
- Timestamp:
- Sep 7, 2014, 6:58:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/pppClient.cpp
r6087 r6088 54 54 // Global variable holding thread-specific pointers 55 55 ////////////////////////////////////////////////////////////////////////////// 56 t_pppClient* PPP_CLIENT = 0;56 QThreadStorage<t_pppClient*> CLIENTS; 57 57 58 58 // Static function returning thread-specific pointer 59 59 ////////////////////////////////////////////////////////////////////////////// 60 60 t_pppClient* t_pppClient::instance() { 61 return PPP_CLIENT;61 return CLIENTS.localData(); 62 62 } 63 63 … … 71 71 _log = new ostringstream(); 72 72 _staID = QByteArray(_opt->_roverName.c_str()); 73 PPP_CLIENT = this; 73 74 CLIENTS.setLocalData(this); // CLIENTS takes ownership over "this" 74 75 } 75 76
Note:
See TracChangeset
for help on using the changeset viewer.