In my case, the pinD2 waits for a RISING edge to trigger the interrupt int_0(). I would like to do the task on ISR(TIMER1_COMPA_vect) only after int_0 was called. I thoight about putting TCNT1=0 and OCR1A inside int_0()
if you want to toggle PORTB0, you might want to use PINB (you can toggle any pin by writing a 1 to the corresponding PIN register position), it will be faster than using |= (1 clock cycle)
and I thought what you wanted to do is turn ON and OFF PORTB0 (which it does not because a OR won't write a 0, you need a AND with bits all at 1 except the one you want to set to 0)
writing 0b00000001 in PINB will toggle the first bit (in modern AVRs - and when the pin is an output)
it's documented in AVR reference, but you can find many reference to that online, for example here