andrewsmedina has quit [Ping timeout: 256 seconds]
andrewsmedina has joined #pypy
jcea has quit [Ping timeout: 272 seconds]
andrewsmedina has quit [Ping timeout: 264 seconds]
andrewsmedina has joined #pypy
epony has quit [Ping timeout: 264 seconds]
epony has joined #pypy
archie1234132 has joined #pypy
<archie1234132>
Passing a callback, getting `extern "Python": function ... called, but @ffi.def_extern() was not called in the current subinterpreter. Returning 0.` I do call `@ffi.def_extern()`. May this have anything to do with the callback being invoked from a different thread? The thread is created internally by the C code though
archie7272727 has joined #pypy
archie1234132 has quit [Ping timeout: 264 seconds]
archie1234132 has joined #pypy
<LarstiQ>
archie1234132: `subinterpreter` is a hint I think
<archie1234132>
yes but of what? I don't spawn any subinterps. different thread creaed from c doesn't automatically make another interp, does it?
<LarstiQ>
I didn't think so, but I have not really looked into it
<LarstiQ>
are you able to test from the same thread?
<archie1234132>
hm, can I call an ffi.extern callback via ffi from python without making a c function just to call it directly?
<LarstiQ>
you could .set_source, or do you mean without even C code from Python at all?
<archie1234132>
I mean to test a cffi from the same thread. To test a callback from the same thread it seems I'd have to create a C function just to call the callback. Wondering if I can circumvent that step
<archie1234132>
test a cffi callback
lritter has joined #pypy
derpydoo has joined #pypy
archie1234132 has quit [Ping timeout: 252 seconds]
archie7272727 has quit [Ping timeout: 264 seconds]
archie7272727 has joined #pypy
archie7272727 has quit [Read error: Connection reset by peer]
archie7272727 has joined #pypy
archie7272727 has quit [Read error: Connection reset by peer]
archie7272727 has joined #pypy
archie1234132 has joined #pypy
epony has quit [Remote host closed the connection]
jcea has joined #pypy
epony has joined #pypy
derpydoo has quit [Ping timeout: 255 seconds]
slav0nic has joined #pypy
archie7272727 has quit [Ping timeout: 256 seconds]
archie7272727 has joined #pypy
archie1234132 has quit [Ping timeout: 252 seconds]
archie7272727 has quit [Ping timeout: 252 seconds]
archie7272727 has joined #pypy
archie7272727 has quit [Read error: Connection reset by peer]
archie7272727 has joined #pypy
jcea has quit [Ping timeout: 256 seconds]
archie1234132 has joined #pypy
lritter has quit [Remote host closed the connection]
epony has quit [Remote host closed the connection]
epony has joined #pypy
archie7272727 has quit [Quit: Quit]
archie1234132 has quit [Ping timeout: 272 seconds]
epony has quit [Remote host closed the connection]