[Numpy-svn] r3042 - trunk/numpy/core/include/numpy

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Aug 21 14:03:30 CDT 2006


Author: oliphant
Date: 2006-08-21 14:03:29 -0500 (Mon, 21 Aug 2006)
New Revision: 3042

Added:
   trunk/numpy/core/include/numpy/npy_interrupt.h
Log:
Include interrupt stub.

Added: trunk/numpy/core/include/numpy/npy_interrupt.h
===================================================================
--- trunk/numpy/core/include/numpy/npy_interrupt.h	2006-08-21 18:52:06 UTC (rev 3041)
+++ trunk/numpy/core/include/numpy/npy_interrupt.h	2006-08-21 19:03:29 UTC (rev 3042)
@@ -0,0 +1,24 @@
+
+/* Signal handling: 
+
+In your C-extension:  
+
+Around a block of code you want to be interruptable 
+
+NPY_SIG_ON
+[code]
+NPY_SIG_OFF
+
+*/
+
+/* Add signal handling macros */
+
+#ifndef NPY_INTERRUPT_H
+#define NPY_INTERRUPT_H
+
+#define NPY_SIG_ON
+#define NPY_SIG_OFF
+#define NPY_SIG_CHECK
+
+
+#endif /* NPY_INTERRUPT_H */



More information about the Numpy-svn mailing list