mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Make PacketQueue fields atomic to avoid data races (e.g. with ParseThread)
This commit is contained in:
parent
fae5843347
commit
454bae2c43
4
extern/osg-ffmpeg-videoplayer/videostate.hpp
vendored
4
extern/osg-ffmpeg-videoplayer/videostate.hpp
vendored
@ -80,8 +80,8 @@ struct PacketQueue {
|
||||
|
||||
AVPacketList *first_pkt, *last_pkt;
|
||||
std::atomic<bool> flushing;
|
||||
int nb_packets;
|
||||
int size;
|
||||
std::atomic<int> nb_packets;
|
||||
std::atomic<int> size;
|
||||
|
||||
OpenThreads::Mutex mutex;
|
||||
OpenThreads::Condition cond;
|
||||
|
Loading…
x
Reference in New Issue
Block a user