No, only if your c function can call back into Julia and doesn’t support longjmp (to be fair the second condition is likely to be the case if the first one is satisfied). Most c code don’t.
yuyichao
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Interrupts and `@spawn` with `ccall` | 1 | 441 | January 2, 2020 | |
| Wrote a macro to make ccall look a little more like Julia. Need an opinion on the return type placement | 32 | 4169 | January 24, 2019 | |
| How to interrupt a long-running ccall C/C++ library? | 1 | 336 | August 24, 2023 | |
| Create a custom @ccall | 4 | 309 | July 22, 2024 | |
| Segmentation fault on ccall | 6 | 1785 | November 11, 2017 |