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.master
parent
d5289b085a
commit
8a3f35ae17
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue