Changeset 7976 in ntrip


Ignore:
Timestamp:
Jun 30, 2016, 4:58:38 PM (8 years ago)
Author:
stuerze
Message:

mionor changes to allow programm interruption by Ctrl+C in case of raw file processing

Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.h

    r7300 r7976  
    7171  void             startPPP();
    7272  void             stopPPP();
     73  int              sigintReceived;
    7374
    7475  QMap<int, bncTableItem*> _uploadTableItems;
  • trunk/BNC/src/bncgetthread.cpp

    r7888 r7976  
    468468        QCoreApplication::processEvents();
    469469
    470         if (data.isEmpty()) {
    471           cout << "no more data" << endl;
     470        if (data.isEmpty() || BNC_CORE->sigintReceived) {
     471          cout << "no more data or Ctrl-C received" << endl;
    472472          BNC_CORE->stopCombination();
    473473          BNC_CORE->stopPPP();
  • trunk/BNC/src/bncmain.cpp

    r7961 r7976  
    5757using namespace std;
    5858
    59 
    6059void catch_signal(int) {
    6160  cout << "Program Interrupted by Ctrl-C" << endl;
     61  BNC_CORE->sigintReceived = 1;
    6262  qApp->quit();
    6363}
     
    484484    // -----------------------------
    485485    else {
     486      BNC_CORE->sigintReceived = 0;
    486487      BNC_CORE->setMode(t_bncCore::batchPostProcessing);
    487488      BNC_CORE->startPPP();
Note: See TracChangeset for help on using the changeset viewer.