mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 15:06:41 +00:00
Make PacketQueue fields atomic to avoid data races (e.g. with ParseThread)
This commit is contained in:
parent
fae5843347
commit
454bae2c43
1 changed files with 2 additions and 2 deletions
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;
|
AVPacketList *first_pkt, *last_pkt;
|
||||||
std::atomic<bool> flushing;
|
std::atomic<bool> flushing;
|
||||||
int nb_packets;
|
std::atomic<int> nb_packets;
|
||||||
int size;
|
std::atomic<int> size;
|
||||||
|
|
||||||
OpenThreads::Mutex mutex;
|
OpenThreads::Mutex mutex;
|
||||||
OpenThreads::Condition cond;
|
OpenThreads::Condition cond;
|
||||||
|
|
Loading…
Reference in a new issue