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
f8da71b9
Commit
f8da71b9
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
ice transport: cleanup
Change-Id: Icdacf3ad7bb2161b81c1495f9d2a9cccee999794
parent
2d9c27d3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ice_transport.cpp
+4
-3
4 additions, 3 deletions
src/ice_transport.cpp
with
4 additions
and
3 deletions
src/ice_transport.cpp
+
4
−
3
View file @
f8da71b9
...
...
@@ -155,6 +155,8 @@ public:
int
flushTimerHeapAndIoQueue
();
int
checkEventQueue
(
int
maxEventToPoll
);
std
::
condition_variable_any
iceCV_
{};
std
::
string
sessionName_
{};
std
::
unique_ptr
<
pj_pool_t
,
std
::
function
<
void
(
pj_pool_t
*
)
>>
pool_
{};
bool
isTcp_
{
false
};
...
...
@@ -168,7 +170,6 @@ public:
std
::
string
local_ufrag_
{};
std
::
string
local_pwd_
{};
pj_sockaddr
remoteAddr_
{};
std
::
condition_variable_any
iceCV_
{};
pj_ice_strans_cfg
config_
{};
std
::
string
last_errmsg_
{};
...
...
@@ -233,7 +234,7 @@ public:
mutable
std
::
mutex
sendDataMutex_
{};
std
::
condition_variable
waitDataCv_
=
{};
pj_size_t
lastSentLen_
{
0
};
std
::
atomic_
bool
destroying_
{
false
};
bool
destroying_
{
false
};
onShutdownCb
scb
{};
};
...
...
@@ -1707,7 +1708,7 @@ IceTransport::send(unsigned compId, const unsigned char* buf, size_t len)
// bytes length).
pimpl_
->
waitDataCv_
.
wait
(
dlk
,
[
&
]
{
return
pimpl_
->
lastSentLen_
>=
static_cast
<
pj_size_t
>
(
len
)
or
pimpl_
->
destroying_
.
load
()
;
or
pimpl_
->
destroying_
;
});
pimpl_
->
lastSentLen_
=
0
;
}
else
if
(
status
!=
PJ_SUCCESS
&&
status
!=
PJ_EPENDING
)
{
...
...
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