Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4b3a3d6f
Commit
4b3a3d6f
authored
Jan 11, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/upnp: remove unnecessary Mutex
parent
71d012fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
upnpplib.cxx
src/db/upnp/upnpplib.cxx
+0
-2
upnpplib.hxx
src/db/upnp/upnpplib.hxx
+0
-2
No files found.
src/db/upnp/upnpplib.cxx
View file @
4b3a3d6f
...
...
@@ -68,8 +68,6 @@ LibUPnP::LibUPnP()
void
LibUPnP
::
registerHandler
(
Upnp_EventType
et
,
Upnp_FunPtr
handler
,
void
*
cookie
)
{
const
ScopeLock
protect
(
m_mutex
);
if
(
handler
==
nullptr
)
m_handlers
.
erase
(
et
);
else
...
...
src/db/upnp/upnpplib.hxx
View file @
4b3a3d6f
...
...
@@ -20,7 +20,6 @@
#ifndef _LIBUPNP_H_X_INCLUDED_
#define _LIBUPNP_H_X_INCLUDED_
#include "thread/Mutex.hxx"
#include "util/Error.hxx"
#include <map>
...
...
@@ -40,7 +39,6 @@ class LibUPnP {
Error
init_error
;
UpnpClient_Handle
m_clh
;
Mutex
m_mutex
;
std
::
map
<
Upnp_EventType
,
Handler
>
m_handlers
;
LibUPnP
();
...
...
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