diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index e167ee8fcb..8024145535 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -97,16 +97,16 @@ extern void ProcessInterrupts(void); #define CHECK_FOR_INTERRUPTS() \ do { \ - if (InterruptPending) \ + if (unlikely(InterruptPending)) \ ProcessInterrupts(); \ } while(0) #else /* WIN32 */ #define CHECK_FOR_INTERRUPTS() \ do { \ - if (UNBLOCKED_SIGNAL_QUEUE()) \ + if (unlikely(UNBLOCKED_SIGNAL_QUEUE())) \ pgwin32_dispatch_queued_signals(); \ - if (InterruptPending) \ + if (unlikely(InterruptPending)) \ ProcessInterrupts(); \ } while(0) #endif /* WIN32 */