diff options
author | Armin Rigo <arigo@tunes.org> | 2015-12-01 20:49:53 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-12-01 20:49:53 +0100 |
commit | 6869ffb621df4500f91264b8a479edccc9e26b96 (patch) | |
tree | f5970c93868a08a2e9836bee547d64b4913f1b18 /demo/embedding.py | |
parent | b34bd59f54841aa763f84c9f6510fc3d7199b457 (diff) | |
download | cffi-6869ffb621df4500f91264b8a479edccc9e26b96.tar.gz |
Carefully craft the setup logic to handle multiple threads and
reentrancy. This should ideally be tested (as usual multithreading is a
mess to test, but still).
Diffstat (limited to 'demo/embedding.py')
-rw-r--r-- | demo/embedding.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demo/embedding.py b/demo/embedding.py index 08e0a7c..0d776ef 100644 --- a/demo/embedding.py +++ b/demo/embedding.py @@ -9,6 +9,8 @@ ffi.cdef(""" ffi.embedding_init_code(""" from _embedding_cffi import ffi, lib + print "preparing" + @ffi.def_extern() def add(x, y): print "adding", x, "and", y |