mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-18 16:21:39 +00:00
BBA/HLE: Fix random PCAP file corruption
Concurrency between RecvHandlePacket and SendFromDirectFIFO
This commit is contained in:
parent
aa1311cd78
commit
91020ac4fa
3 changed files with 6 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue