Passing handlers between bound c++ libs

F

Freyr

I have a python bound physics library that uses handler to process
events. The passing of handlers between c++ and python causes a huge
overhead slowing down the process. Can I implement a handler in my
custom python bound c++ lib B and pass it to blackbox python bound c++
lib A so that A would call B directly without passing through the
python layer? Or to phrase the question differently: Can I pass a
handler from B through python to A so that A will invoke B with out
calling into python code?
 
B

bobicanprogram

I have a python bound physics library that uses handler to process
events. The passing of handlers between c++ and python causes a huge
overhead slowing down the process. Can I implement a handler in my
custom python bound c++ lib B and pass it to blackbox python bound c++
lib A so that A would call B directly without passing through the
python layer? Or to phrase the question differently: Can I pass a
handler from B through python to A so that A will invoke B with out
calling into python code?


Depending on your exact configuration you may be able to wrap that C++
library using the SIMPL toolkit and get at your data with a
message. There is some "hello world" demo code here:

http://www.icanprogram.com/06py/main.html

bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,654
Latest member
LannySinge

Latest Threads

Top