areaDetector / ADCore

The home of the core components of the EPICS areaDetector software. It includes base classes for drivers and code for all of the standard plugins.
https://areadetector.github.io/master/index.html
Other
20 stars 65 forks source link

Overriding frame memory allocator #487

Closed EmilioPeJu closed 6 months ago

EmilioPeJu commented 1 year ago

Hi all,

I am working on an AD plugin which uses shared memory to pass the frames to an external process with minimal overhead, unfortunately NDArrayPool doesn't provide mechanisms to override the mapping/unmapping of memory:

The approach I took is providing a function to override function pointers used in place of malloc/free inside NDArrayPool

If this approach is appreciated, see pull request https://github.com/areaDetector/ADCore/pull/486, otherwise I'm open to alternative approaches