diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-21 19:03:29 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-21 19:03:29 +0000 |
commit | 35b2e72846667f7a5630eaf4aeef905164ae6ab7 (patch) | |
tree | 3a3dcb9b471119cb68ed4ced28552d0048961f15 | |
parent | a7b84416c876c035d811ef705da3e26309b1709e (diff) | |
download | numpy-35b2e72846667f7a5630eaf4aeef905164ae6ab7.tar.gz |
Include interrupt stub.
-rw-r--r-- | numpy/core/include/numpy/npy_interrupt.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_interrupt.h b/numpy/core/include/numpy/npy_interrupt.h new file mode 100644 index 000000000..1e4257d56 --- /dev/null +++ b/numpy/core/include/numpy/npy_interrupt.h @@ -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 */ |