May I use cli() and sei() in the interrupt?

  avr, c++, interrupt

May I use cli() and sei() like this:

ISR(EXT_INT0_vect)
{
    cli();
    MyFunction();
    sei();
}

I heard that it is forbidden. Is it or I can use cli() and sei() like above?

Source: Windows Questions C++

LEAVE A COMMENT