Add a list of pending thread hints.

This commit is contained in:
Bartosz Taudul 2024-08-03 19:55:37 +02:00
parent 28a9750f8a
commit bdacfe7c37
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 6 additions and 0 deletions

View File

@ -6872,6 +6872,7 @@ void Worker::ProcessThreadGroupHint( const QueueThreadGroupHint& ev )
auto td = RetrieveThread( ev.thread );
assert( td );
td->groupHint = ev.groupHint;
m_pendingThreadHints.emplace_back( ev.thread );
}
void Worker::ProcessFiberEnter( const QueueFiberEnter& ev )

View File

@ -678,6 +678,9 @@ public:
StringLocation StoreString(const char* str, size_t sz);
std::vector<uint32_t>& GetPendingThreadHints() { return m_pendingThreadHints; }
void ClearPendingThreadHints() { m_pendingThreadHints.clear(); }
private:
void Network();
void Exec();
@ -1097,6 +1100,8 @@ private:
unordered_flat_map<uint64_t, PowerData> m_powerData;
Vector<InlineStackData> m_inlineStack;
std::vector<uint32_t> m_pendingThreadHints;
};
}