Two interrupts for a single operation
This sounds like a bad idea:


Interrupts should be independent from each other, otherwise very nasty race conditions and deadlocks can occur.
Only one interrupt can run code at a time. 
Interrupts are triggered by signal edges, not signal level. 


All this means that it will be very difficult to detect when the condition you want occurs, and when it stops.

If you want to do this in software, you will need to run a loop that polls the two signals to detect if the situation occurs. If your MCU has nothing else to do, this can be very fast &amp; reliable, but other interrupts might upset the timing.

If polling is not fast enough because the condition only lasts very briefly, you will need a bit of external hardware, such as an AND gate, to combine the two signals and trigger an interrupt. This will detect very brief events.

For extremely accurate &amp; fast signal generation, you can use the AND signal as external trigger for a timer.