$search

shared_memory_pos.cpp File Reference

Magic trick to make sure the library is called for shared memory. More...

#include "../../include/ecl/ipc/shared_memory_pos.hpp"
#include <ecl/config.hpp>
Include dependency graph for shared_memory_pos.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Detailed Description

Magic trick to make sure the library is called for shared memory.

If using --as-needed and shared memory objects, this library will often not get called (as the shared memory class is 100% headers). This will result in sometimes (if nothing else calls it) -lrt not being called and ultimately you will get undefined references to shm_unlink and co.

This is some magic to make sure that you always bring in the library when using the shared memory class.

Date:
January 2011

Definition in file shared_memory_pos.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


ecl_ipc
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:21:35 2013