Changeset 11342 for trunk/FACT++/src


Ignore:
Timestamp:
07/11/11 16:03:44 (14 years ago)
Author:
tbretz
Message:
Divided Reset into soft and hard reset.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fadctrl.cc

    r11340 r11342  
    11841184    }
    11851185
    1186     int Reset()
    1187     {
    1188         ResetThread();
     1186    int Reset(bool soft)
     1187    {
     1188        ResetThread(soft);
    11891189        return T::GetCurrentState();
    11901190    }
     
    15321532            ("Immediately abort EventBuilder thread and disconnect all slots.");
    15331533
    1534         T::AddEvent("RESET", FAD::kDisconnected)
    1535             (boost::bind(&StateMachineFAD::Reset, this))
    1536             ("Flush all buffers, close all files  and reinitialize event builder thread.");
     1534        T::AddEvent("SOFT_RESET", FAD::kConnected)
     1535            (boost::bind(&StateMachineFAD::Reset, this, true))
     1536            ("Wait for buffers to drain, close all files and reinitialize event builder thread.");
     1537
     1538        T::AddEvent("HARD_RESET", FAD::kConnected)
     1539            (boost::bind(&StateMachineFAD::Reset, this, false))
     1540            ("Free all buffers, close all files and reinitialize event builder thread.");
    15371541
    15381542        T::AddEvent("CONNECT", "S:1", FAD::kDisconnected, FAD::kConnecting, FAD::kConnected)
Note: See TracChangeset for help on using the changeset viewer.