Passing handlers between bound c++ libs

Discussion in 'Python' started by Freyr, Jul 15, 2009.

  1. Freyr

    Freyr Guest

    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?
     
    Freyr, Jul 15, 2009
    #1
    1. Advertising

  2. On Jul 14, 7:07 pm, Freyr <> wrote:
    > 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
     
    bobicanprogram, Jul 16, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christoph
    Replies:
    2
    Views:
    555
    Richard Bos
    Sep 17, 2003
  2. Andrew James
    Replies:
    2
    Views:
    419
    Diez B. Roggisch
    Feb 3, 2005
  3. Phillip Vong
    Replies:
    0
    Views:
    435
    Phillip Vong
    Jul 27, 2006
  4. Raman
    Replies:
    5
    Views:
    1,098
    Raman
    May 9, 2008
  5. Greg Hauptmann
    Replies:
    4
    Views:
    230
    Stefano Crocco
    Feb 7, 2009
Loading...

Share This Page