musl: base: Work around thread_local breakage in musl 1.1.19

The bitmask field is corrupted in musl 1.1.19 and fixed in 1.1.24.

This workaround makes it work even for old OpenWrt 18.06.

These virtual methods are for test only and it's harmless to remove it.
This commit is contained in:
klzgrad
2026-09-24 08:04:26 +08:00
parent 19333bc3b0
commit 8a284fb266
+2 -2
View File
@@ -485,7 +485,7 @@ class BASE_EXPORT ThreadTypeManager {
uint32_t bitmask = 0;
};
ThreadTypeManager() = default;
virtual ~ThreadTypeManager() = default;
~ThreadTypeManager() = default;
ThreadTypeManager(const ThreadTypeManager&) = delete;
ThreadTypeManager& operator=(const ThreadTypeManager&) = delete;
@@ -497,7 +497,7 @@ class BASE_EXPORT ThreadTypeManager {
bool HasLeases() const;
private:
virtual void SetCurrentThreadTypeImpl(ThreadType thread_type,
void SetCurrentThreadTypeImpl(ThreadType thread_type,
MessagePumpType pump_type_hint);
// `default_thread_type_` can be nullopt to be able to express the state