mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Fixed crash of RBDoom after stopping an Optick capture
This commit is contained in:
parent
a441eccfd0
commit
18e0e7f2e7
1 changed files with 9 additions and 0 deletions
|
@ -333,6 +333,15 @@ struct ThreadEntry
|
|||
bool isAlive;
|
||||
|
||||
ThreadEntry(const ThreadDescription& desc, EventStorage** tls) : description(desc), threadTLS(tls), isAlive(true) {}
|
||||
// RB: see Fix for crash on stop capture #1
|
||||
// https://github.com/ulricheck/optick/pull/1/commits/1e5e1919816a64f235caa0f4b0bf20495225b1fa
|
||||
~ThreadEntry()
|
||||
{
|
||||
if((*threadTLS)!=nullptr)
|
||||
{
|
||||
*threadTLS = nullptr;
|
||||
}
|
||||
}
|
||||
void Activate(Mode::Type mode);
|
||||
void Sort();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue