I am new to BOOST
We are planning to move from ACE to BOOST. We are not using complete ACE but just part of the ACE library and some are mentioned below
- ACE_THREAD
- ACE_OS
- ACE_Condition
- ACE_Timer
- ACE_Hash
- ACE_Semaphore
- ACE_Time_Value
Is this or similar functionality/api available in BOOST . Most Important is there ACE_Task_Base kind of functionality in BOOST
I want to know is this possible using BOOST and any problem of using BOOST. My Product is pure C++, heavy Network and Threads on Windows and Unices
The above are all part of
boost::threadshttp://www.boost.org/doc/libs/1_52_0/doc/html/thread.html
C++11
http://en.cppreference.com/w/cpp/thread
Some common things are done in boost w.r.t. OS but it depends on what parts of this you are using. There is
boost::systemandboost::filesystem, threading above and many more. Some of the lower level calls you’ll need to handle I suspect.http://www.boost.org/doc/libs/1_52_0/libs/system/doc/index.html
http://www.boost.org/doc/libs/1_52_0/libs/filesystem/doc/index.htm
boost::asiocan be used to create timers which are similar to this and this lib may provide more of the function of ACE (or the mechanisms to create it)http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio.html
ACE_Hash – again there is a lot of function here, but it could be replaced/implemented with boost or C++11
Boost:
http://www.boost.org/doc/libs/1_52_0/doc/html/hash.html
http://www.boost.org/doc/libs/1_52_0/doc/html/unordered.html
c++11:
http://en.cppreference.com/w/cpp/container/unordered_map
I would suspect you’ll need to create your own replacement for the functionality here. The messages and message parsing mechanisms are quite involved in ACE. Threading is covered above, but a manager for created threads again is likely to need implementing.