#18027: Move interrupts to Cython
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.6
Component: cython | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: Reported | Work issues:
upstream. No feedback yet. | Commit:
Branch: | 6d738d6e869b869ccaf68a5db6a166542647dd7d
u/jdemeyer/move_interrupts_to_cython| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
To explain the usage of `interrupt_api.h` better: the global variable
`_signals` (and some functions like `_sig_on_interrupt_received`) which
used to be implemented in `c_lib` are now implemented in Cython. For
technical reasons, `sig_on()` MUST be a macro and therefore it can only
reasonably be implemented in a `.h` file. But `sig_on()` needs access to
`_signals`. So we need a mechanism to access the Cython global variable
`_signals` in the C header `macros.h`. We use the standard `cdef api`
mechanism for this.
--
Ticket URL: <http://trac.sagemath.org/ticket/18027#comment:31>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.