- Timestamp:
- Oct 14, 2006, 10:15:41 AM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/GPSDecoder.h
r246 r248 2 2 #ifndef GPSDECODER_H 3 3 #define GPSDECODER_H 4 5 #include <QMutexLocker>6 4 7 5 #include <list> … … 42 40 virtual ~GPSDecoder() {} 43 41 std::list<Observation*> _obsList; 44 protected:45 QMutex _mutex;46 42 }; 47 43 -
trunk/BNC/RTCM/RTCM2.cpp
r247 r248 283 283 while (!isHeader() || i<5 ) { 284 284 // Check if string is long enough; if not restore old word and exit 285 if (buf.size() == 0 || buf.size()-1<i) {285 if (buf.size()<i+1) { 286 286 W = W_old; 287 287 failure = true; -
trunk/BNC/RTCM/RTCM2Decoder.cpp
r246 r248 4 4 // 5 5 //------------------------------------------------------------------------------ 6 7 #include <QMutexLocker>8 6 9 7 #include "../bncutils.h" … … 34 32 35 33 void RTCM2Decoder::Decode(char* buffer, int bufLen) { 36 37 QMutexLocker locker(&_mutex);38 34 39 35 _buffer.append(buffer, bufLen); -
trunk/BNC/RTCM3/rtcm3.cpp
r246 r248 31 31 //////////////////////////////////////////////////////////////////////////// 32 32 rtcm3::rtcm3() : GPSDecoder() { 33 QMutexLocker locker(&_mutex);34 33 memset(&_Parser, 0, sizeof(_Parser)); 35 34 time_t tim; … … 47 46 //////////////////////////////////////////////////////////////////////////// 48 47 void rtcm3::Decode(char* buffer, int bufLen) { 49 QMutexLocker locker(&_mutex);50 48 for (int ii = 0; ii < bufLen; ii++) { 51 49 -
trunk/BNC/RTIGS/rtigs.cpp
r246 r248 37 37 //////////////////////////////////////////////////////////////////////////// 38 38 void rtigs::Decode(char* buffer, int bufLen) { 39 40 QMutexLocker locker(&_mutex);41 39 42 40 // Append the incomming data to the internal buffer
Note:
See TracChangeset
for help on using the changeset viewer.