Ignore:
Timestamp:
07/20/11 08:03:38 (13 years ago)
Author:
tbretz
Message:
Replaced boost::thread by std::thread and boost::bind by std::bind from the C++0x standard
File:
1 edited

Legend:

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

    r11480 r11481  
    1 #include <boost/bind.hpp>
    2 
    31#include "Dim.h"
    42#include "Event.h"
     
    4240    boost::function<int(const EventImp &)> Wrapper(boost::function<void()> func)
    4341    {
    44         return boost::bind(&StateMachineMCP::Wrap, this, func);
     42        return bind(&StateMachineMCP::Wrap, this, func);
    4543    }*/
    4644
     
    332330
    333331        AddEvent("START", kStateIdle)
    334             (boost::bind(&StateMachineMCP::StartRun, this, _1))
     332            (bind(&StateMachineMCP::StartRun, this, placeholders::_1))
    335333            ("");
    336334
    337335        AddEvent("STOP")
    338             (boost::bind(&StateMachineMCP::StopRun, this, _1))
     336            (bind(&StateMachineMCP::StopRun, this, placeholders::_1))
    339337            ("");
    340338
    341339        AddEvent("RESET", kStateConfiguring1, kStateConfiguring2, kStateConfigured)
    342             (boost::bind(&StateMachineMCP::Reset, this, _1))
     340            (bind(&StateMachineMCP::Reset, this, placeholders::_1))
    343341            ("");
    344342
    345343        // Verbosity commands
    346344        AddEvent("SET_VERBOSE", "B:1")
    347             (boost::bind(&StateMachineMCP::SetVerbosity, this, _1))
     345            (bind(&StateMachineMCP::SetVerbosity, this, placeholders::_1))
    348346            ("set verbosity state"
    349347             "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
    350348
    351349        AddEvent("PRINT")
    352             (boost::bind(&StateMachineMCP::Print, this))
     350            (bind(&StateMachineMCP::Print, this))
    353351            ("");
    354352    }
     
    422420    shell.SetReceiver(io_service);
    423421
    424     boost::thread t(boost::bind(RunThread, &io_service));
    425     // boost::thread t(boost::bind(&StateMachineMCP<S>::Run, &io_service));
     422    boost::thread t(bind(RunThread, &io_service));
     423    // boost::thread t(bind(&StateMachineMCP<S>::Run, &io_service));
    426424
    427425    if (conf.Has("cmd"))
Note: See TracChangeset for help on using the changeset viewer.