autoconf - What pthread functions are used by boost interprocess? -


i using boost::interprocess implement ipc mechanism based on shared memory. want cross platform (including windows), , build system autotools. on platforms boost::interprocess requires link library librt implements threading functions, not on windows, or apple platforms (i think). see following link:

http://www.boost.org/doc/libs/1_64_0/doc/html/interprocess.html#interprocess.intro.introduction_building_interprocess

now, in autotools can things conditionally depending on host being windows, better test if required functions available using ac_search_libs. ac_search_libs macro first checks if functions available no libraries, using provided list of libraries in sequence.

to test, need know functions search for.

to more specific need use following headers in program:

#include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/sync/interprocess_mutex.hpp> #include <boost/interprocess/sync/interprocess_condition.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include <boost/interprocess/containers/vector.hpp> 

so functions in librt required these headers, or easiest way find out?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -