mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
nhttpd: try to fix threaded nhttp crashes (again)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user