Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
36d62b40
Commit
36d62b40
authored
Jan 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless mutex (pthread_once is enough)
parent
d8cfcc77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
libs/srtp/srtp.c
libs/srtp/srtp.c
+0
-6
No files found.
libs/srtp/srtp.c
View file @
36d62b40
...
...
@@ -106,10 +106,8 @@ static int init_libgcrypt (void)
{
int
retval
;
#ifndef WIN32
static
pthread_mutex_t
mutex
=
PTHREAD_MUTEX_INITIALIZER
;
static
pthread_once_t
once
=
PTHREAD_ONCE_INIT
;
pthread_mutex_lock
(
&
mutex
);
pthread_once
(
&
once
,
initonce_libgcrypt
);
#else
# warning FIXME: This is not thread-safe.
...
...
@@ -119,10 +117,6 @@ static int init_libgcrypt (void)
retval
=
libgcrypt_usable
?
0
:
-
1
;
#ifndef WIN32
pthread_mutex_unlock
(
&
mutex
);
#endif
return
retval
;
}
...
...
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