Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
26
Issues
26
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
ffd73d41
Commit
ffd73d41
authored
Jul 12, 2018
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double unlock.
* Log pthread_mutex_destroy result.
parent
4bbb2e8d
Pipeline
#2672
passed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
prrt/proto/channelStateInformation.c
prrt/proto/channelStateInformation.c
+2
-2
No files found.
prrt/proto/channelStateInformation.c
View file @
ffd73d41
...
...
@@ -34,7 +34,8 @@ PrrtChannelStateInformation * PrrtChannelStateInformation_create()
bool
PrrtChannelStateInformation_destroy
(
PrrtChannelStateInformation
*
csi
)
{
check
(
pthread_mutex_destroy
(
&
csi
->
lock
)
==
EXIT_SUCCESS
,
"Destroy mutex failed."
);
int
destroyResult
=
pthread_mutex_destroy
(
&
csi
->
lock
);
check
(
destroyResult
==
EXIT_SUCCESS
,
"Destroy mutex failed: %d."
,
destroyResult
);
free
(
csi
);
return
true
;
error:
...
...
@@ -82,7 +83,6 @@ prrtTimedelta_t PrrtChannelStateInformation_get_rtprop(PrrtChannelStateInformati
{
check
(
pthread_mutex_lock
(
&
csi
->
lock
)
==
EXIT_SUCCESS
,
"Lock failed."
);
prrtAtomicTimedelta_t
res
=
csi
->
rtprop
;
pthread_mutex_unlock
(
&
csi
->
lock
);
check
(
pthread_mutex_unlock
(
&
csi
->
lock
)
==
EXIT_SUCCESS
,
"Unlock failed."
);
return
(
prrtTimedelta_t
)
res
;
error:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment