Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions include/cpp_common/interruption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,16 @@ extern "C" {
#endif

/* Service interrupt, if one is pending and it's safe to service it now */
#define CHECK_FOR_INTERRUPTS() \
do { \
if (INTERRUPTS_PENDING_CONDITION()) \
ProcessInterrupts(); \
} while (0)
#endif

}

static inline void CHECK_FOR_INTERRUPTS() {
if (INTERRUPTS_PENDING_CONDITION()) {
ProcessInterrupts();
}
}
Comment thread
Eternity0207 marked this conversation as resolved.

#include "cpp_common/undefPostgresDefine.hpp"

#endif // INCLUDE_CPP_COMMON_INTERRUPTION_HPP_