Handling Interrupt in C++

I have read interrupt used in the PYNQ framework. However, this is implemented in python. I was wondering what is the way to implement interrupt handler in C++ since I have some heavy processing that needs to be done in C++.