Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
e324e949
Commit
e324e949
authored
Sep 29, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Destroy pthread mutex and conditional variable in CyLock destructor
parent
a33d4e7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+5
-0
No files found.
Cython/Utility/CyObjects.cpp
View file @
e324e949
...
...
@@ -58,6 +58,11 @@
this
->
readers_nb
=
0
;
this
->
write_count
=
0
;
}
~
CyLock
()
{
pthread_mutex_destroy
(
&
this
->
guard
);
pthread_cond_destroy
(
&
this
->
readers_have_left
);
pthread_cond_destroy
(
&
this
->
writer_has_left
);
}
void
wlock
(
const
char
*
context
);
void
rlock
(
const
char
*
context
);
void
unwlock
();
...
...
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