Changeset 5905 in ntrip for trunk/BNC/src/PPP/pppMain.cpp


Ignore:
Timestamp:
Aug 9, 2014, 11:45:37 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppMain.cpp

    r5900 r5905  
    6262//
    6363//////////////////////////////////////////////////////////////////////////////
    64 void t_pppMain::start() {
     64void t_pppMain::start(bool ownThread) {
    6565  if (_running) {
    6666    return;
     
    7373    while (iOpt.hasNext()) {
    7474      const t_pppOptions* opt = iOpt.next();
    75       t_pppThread* pppThread = new t_pppThread(opt);
    76       pppThread->start();
     75      t_pppThread* pppThread = new t_pppThread(ownThread, opt);
     76      if (ownThread) {
     77        cout << "start" << endl;
     78        pppThread->start();
     79      }
     80      else {
     81        cout << "run" << endl;
     82        pppThread->run();
     83      }
    7784      _pppThreads << pppThread;
    7885      _running = true;
Note: See TracChangeset for help on using the changeset viewer.