Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
cb02fb5c
Commit
cb02fb5c
authored
Mar 03, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redumdant mutex
parent
5feadd7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+2
-17
No files found.
src/network/getaddrinfo.c
View file @
cb02fb5c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* getaddrinfo.c: getaddrinfo/getnameinfo replacement functions
* getaddrinfo.c: getaddrinfo/getnameinfo replacement functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 2005 the VideoLAN team
* Copyright (C) 2005 the VideoLAN team
* Copyright (C) 2002-200
4
Rémi Denis-Courmont
* Copyright (C) 2002-200
7
Rémi Denis-Courmont
* $Id$
* $Id$
*
*
* Author: Rémi Denis-Courmont <rem # videolan.org>
* Author: Rémi Denis-Courmont <rem # videolan.org>
...
@@ -573,22 +573,7 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
...
@@ -573,22 +573,7 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
#if defined( HAVE_GETNAMEINFO ) || defined( UNDER_CE )
#if defined( HAVE_GETNAMEINFO ) || defined( UNDER_CE )
i_val
=
getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
i_val
=
getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
#else
#else
{
i_val
=
__getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
# ifdef HAVE_USABLE_MUTEX_THAT_DONT_NEED_LIBVLC_POINTER
static
vlc_value_t
lock
;
/* my getnameinfo implementation is not thread-safe as it uses
* gethostbyaddr and the likes */
vlc_mutex_lock
(
lock
.
p_address
);
#else
# warning FIXME : This is not thread-safe!
#endif
i_val
=
__getnameinfo
(
sa
,
salen
,
host
,
hostlen
,
psz_serv
,
i_servlen
,
flags
);
# ifdef HAVE_USABLE_MUTEX_THAT_DONT_NEED_LIBVLC_POINTER
vlc_mutex_unlock
(
lock
.
p_address
);
# endif
}
#endif
#endif
if
(
portnum
!=
NULL
)
if
(
portnum
!=
NULL
)
...
...
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