mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
socket_pair: avoid potential race condition
Refs #67228 Change-Id: Id74a19ab8dce01d132555840b05f3165cffb44af
This commit is contained in:

committed by
Gerrit Code Review

parent
8face96729
commit
755f8694c5
@ -36,8 +36,10 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <mutex>
|
||||
#include <stdint.h>
|
||||
#include <memory>
|
||||
#include <atomic>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace ring {
|
||||
|
||||
@ -99,7 +101,7 @@ class SocketPair {
|
||||
socklen_t rtpDestAddrLen_;
|
||||
sockaddr_storage rtcpDestAddr_;
|
||||
socklen_t rtcpDestAddrLen_;
|
||||
bool interrupted_ {false};
|
||||
std::atomic_bool interrupted_ {false};
|
||||
std::unique_ptr<SRTPProtoContext> srtpContext_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user