Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ CheckOptions:
WarningsAsErrors: ''
HeaderFilterRegex: './include'
FormatStyle: none
InheritParentConfig: true
InheritParentConfig: true
Comment thread
Eternity0207 marked this conversation as resolved.
Outdated
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_