3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00
dft_tools/pytriqs/wrap_generator
Olivier Parcollet 446f817111 wrapper: add release_GIL_and_enable_signal option.
- Add to the wrapper generator (add_method) the release_GIL_and_enable_signal option which :

   - release the GIL
   - save the python signal handler
   - enable the C++ triqs signal handler instead.
   - undo all of this after the code runs, or in a case of exception.
   - used python include, ceval.h, line 72 comments and below.

- reworked the triqs::signal_handler.
  simple C like function, no object (no need).
  start, stop, received, cf header file.

- clean the call_back.cpp : only place using the signal directly
  (qmc uses the callback).
  in particular, remove the old BOOST CHRONO, since
  the std::chrono works fine on platforms we use now.
2014-05-30 21:09:18 +02:00
..
CMakeLists.txt lattice : python wrapper 2014-05-29 22:25:22 +02:00
py_converter_wrapper.mako.hpp wrapper: add use_module 2014-05-30 19:34:13 +02:00
wrap_generator.py wrapper: add release_GIL_and_enable_signal option. 2014-05-30 21:09:18 +02:00
wrapper.mako.cpp wrapper: add release_GIL_and_enable_signal option. 2014-05-30 21:09:18 +02:00