nhttpd: try to fix threaded nhttp crashes (again)

This commit is contained in:
[CST] Focus
2016-03-08 18:05:34 +03:00
parent d41f190b4d
commit 14a73c3b80
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)