Changeset 246 in ntrip


Ignore:
Timestamp:
Oct 13, 2006, 5:53:42 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r222 r246  
    22#ifndef GPSDECODER_H
    33#define GPSDECODER_H
     4
     5#include <QMutexLocker>
    46
    57#include <list>
     
    4042    virtual ~GPSDecoder() {}
    4143    std::list<Observation*> _obsList;
     44  protected:
     45    QMutex _mutex;
    4246};
    4347
  • trunk/BNC/RTCM/RTCM2.cpp

    r245 r246  
    276276
    277277void ThirtyBitWord::getHeader(string& buf) {
     278
     279  if (buf.length() == 0) return;
    278280
    279281  unsigned int W_old = W;
  • trunk/BNC/RTCM/RTCM2Decoder.cpp

    r243 r246  
    44//
    55//------------------------------------------------------------------------------
     6
     7#include <QMutexLocker>
    68
    79#include "../bncutils.h"
     
    3234
    3335void RTCM2Decoder::Decode(char* buffer, int bufLen) {
     36
     37  QMutexLocker locker(&_mutex);
    3438
    3539  _buffer.append(buffer, bufLen);
  • trunk/BNC/RTCM3/rtcm3.cpp

    r228 r246  
    3131////////////////////////////////////////////////////////////////////////////
    3232rtcm3::rtcm3() : GPSDecoder() {
     33  QMutexLocker locker(&_mutex);
    3334  memset(&_Parser, 0, sizeof(_Parser));
    3435  time_t tim;
     
    4647////////////////////////////////////////////////////////////////////////////
    4748void rtcm3::Decode(char* buffer, int bufLen) {
     49  QMutexLocker locker(&_mutex);
    4850  for (int ii = 0; ii < bufLen; ii++) {
    4951
  • trunk/BNC/RTIGS/rtigs.cpp

    r234 r246  
    2626// Constructor
    2727////////////////////////////////////////////////////////////////////////////
    28 rtigs::rtigs() : GPSDecoder() {
     28rtigs::rtigs() {
    2929}
    3030
     
    3737////////////////////////////////////////////////////////////////////////////
    3838void rtigs::Decode(char* buffer, int bufLen) {
     39
     40  QMutexLocker locker(&_mutex);
    3941
    4042  // Append the incomming data to the internal buffer
Note: See TracChangeset for help on using the changeset viewer.