Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
755f8694
Commit
755f8694
authored
10 years ago
by
Adrien Béraud
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
socket_pair: avoid potential race condition
Refs #67228 Change-Id: Id74a19ab8dce01d132555840b05f3165cffb44af
parent
8face967
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/media/socket_pair.h
+4
-2
4 additions, 2 deletions
src/media/socket_pair.h
with
4 additions
and
2 deletions
src/media/socket_pair.h
+
4
−
2
View file @
755f8694
...
...
@@ -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_
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment