BBA/HLE: Fix random PCAP file corruption

Concurrency between RecvHandlePacket and SendFromDirectFIFO
This commit is contained in:
Sepalani committed 2023-11-23 22:07:44 +04:00
1 parent aa1311cd78
commit 91020ac4fa
3 files changed
+6

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ void PCAP::AddHeader(u32 link_type)
m_fp->WriteBytes(&hdr, sizeof(hdr));
}
// Not thread-safe, concurrency between multiple calls to IOFile::WriteBytes.
void PCAP::AddPacket(const u8* bytes, size_t size)
{
std::chrono::system_clock::time_point now(std::chrono::system_clock::now());