rocr: Ensure globals are initialized at first use

When ROCr is built as a static library, global variables
were often not initialized to valid values at their first
use. This change addresses that problem.

Change-Id: I550fa41feb3bc04b9cc686bcfb4acf2a7b651a88
This commit is contained in:
Chris Freehill
2024-09-24 11:23:55 -05:00
zatwierdzone przez Chris Freehill
rodzic 80da7d5ee4
commit 9b13bcd0ac
36 zmienionych plików z 323 dodań i 233 usunięć
@@ -44,7 +44,6 @@
namespace rocr {
namespace core {
std::function<void*(size_t, size_t, uint32_t, int)> BaseShared::allocate_ = nullptr;
std::function<void(void*)> BaseShared::free_ = nullptr;
} // namespace core
} // namespace rocr