nhttpd: try to fix threaded nhttp crashes (again)

Origin commit data
------------------
Commit: 14a73c3b80
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2016-03-08 (Tue, 08 Mar 2016)
This commit is contained in:
[CST] Focus
2016-03-08 18:05:34 +03:00
parent 029ead9bcb
commit 86c6632755
4 changed files with 80 additions and 64 deletions

View File

@@ -291,6 +291,15 @@ bool CNeutrinoAPI::GetChannelEvents(void)
return true;
}
void CNeutrinoAPI::GetChannelEvent(t_channel_id channel_id, CChannelEvent &event)
{
OpenThreads::ScopedPointerLock<OpenThreads::Mutex> lock(pmutex);
event.eventID = 0;
CChannelEvent * evt = ChannelListEvents[channel_id];
if (evt)
event = *evt;
}
//-------------------------------------------------------------------------
std::string CNeutrinoAPI::GetServiceName(t_channel_id channel_id)