Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Jul 1, 2024
1 parent bd725ac commit 8c1eb24
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 98 deletions.
3 changes: 1 addition & 2 deletions example/use-counter-with-bvar/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ DEFINE_string(mode, "latency_recorder",
DEFINE_bool(use_counter, false, "Use babylon counter implemented bvar");

template <typename T>
ABSL_ATTRIBUTE_NOINLINE
void run_once(T& var, uint32_t value) {
ABSL_ATTRIBUTE_NOINLINE void run_once(T& var, uint32_t value) {
var << value;
}

Expand Down
10 changes: 0 additions & 10 deletions registry/modules/thrift/0.15.0/MODULE.bazel

This file was deleted.

75 changes: 0 additions & 75 deletions registry/modules/thrift/0.15.0/patches/add-build.patch

This file was deleted.

8 changes: 0 additions & 8 deletions registry/modules/thrift/0.15.0/source.json

This file was deleted.

8 changes: 5 additions & 3 deletions src/babylon/concurrent/id_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,18 @@ struct IdAllocatorFotType {
} // namespace internal

template <typename T>
// The identity of thread_local within inline function has some bug as mentioned in
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85400
// The identity of thread_local within inline function has some bug as mentioned
// in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85400
//
// disable inline hint for buggy versions of GCC
#if !__clang__ && BABYLON_GCC_VERSION < 80400
ABSL_ATTRIBUTE_NOINLINE
#else // __clang__ || BABYLON_GCC_VERSION >= 80400
#else // __clang__ || BABYLON_GCC_VERSION >= 80400
inline ABSL_ATTRIBUTE_ALWAYS_INLINE
#endif // __clang__ || BABYLON_GCC_VERSION >= 80400
// clang-format off
VersionedValue<uint16_t> ThreadId::current_thread_id() noexcept {
// clang-format on
thread_local ThreadId id(
internal::concurrent_id_allocator::IdAllocatorFotType<T>::instance());
return id._value;
Expand Down

0 comments on commit 8c1eb24

Please sign in to comment.