mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
introduce CEitManager class
Origin commit data
------------------
Commit: 88b6acb641
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-07 (Wed, 07 Mar 2012)
This commit is contained in:
61
src/eitd/sectionsd.h
Normal file
61
src/eitd/sectionsd.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* sectionsd.h (network daemon for SI-sections)
|
||||
* (dbox-II-project)
|
||||
*
|
||||
* (C) 2001 by fnbrd (fnbrd@gmx.de)
|
||||
*
|
||||
* Copyright (C) 2011-2012 CoolStream International Ltd
|
||||
*
|
||||
* License: GPLv2
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __sectionsd_h__
|
||||
#define __sectionsd_h__
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <OpenThreads/Thread>
|
||||
#include <OpenThreads/Condition>
|
||||
#include "dmx.h"
|
||||
|
||||
//#include "SIutils.hpp"
|
||||
//#include "SIservices.hpp"
|
||||
//#include "SIevents.hpp"
|
||||
//#include "SIsections.hpp"
|
||||
//#include "SIlanguage.hpp"
|
||||
|
||||
class CEitManager : public OpenThreads::Thread, public OpenThreads::Mutex
|
||||
{
|
||||
private:
|
||||
bool running;
|
||||
|
||||
static OpenThreads::Mutex m;
|
||||
static CEitManager * manager;
|
||||
|
||||
CEitManager();
|
||||
/* main thread function */
|
||||
void run();
|
||||
public:
|
||||
~CEitManager();
|
||||
|
||||
static CEitManager * getInstance();
|
||||
|
||||
bool Start();
|
||||
bool Stop();
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user