Skip to content

Commit 7a0aaec

Browse files
committed
chore: revert accidental changes to unittests Utils.cpp
1 parent d39d2d1 commit 7a0aaec

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

unittests/CppInterOp/Utils.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@ struct DispatchInitializer {
3535
DispatchInitializer(DispatchInitializer&&) noexcept = default;
3636
DispatchInitializer& operator=(DispatchInitializer&&) noexcept = default;
3737
};
38-
// Thread-safe initialization using function-local static
39-
DispatchInitializer& GetDispatchInitializer() {
40-
static DispatchInitializer instance;
41-
return instance;
42-
}
43-
const DispatchInitializer& g_dispatch_init = GetDispatchInitializer();
38+
// FIXME: Make this threadsafe by moving it as a function static.
39+
DispatchInitializer g_dispatch_init;
4440
} // namespace
4541
#endif
4642

0 commit comments

Comments
 (0)