2 Copyright 2008 Marten Richter
4 This file is part of VOMP.
6 VOMP is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 VOMP is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with VOMP. If not, see <https://www.gnu.org/licenses/>.
26 TFeed::TFeed(Callback* tcb): cb(*tcb)
45 threadStartProtect.lock();
46 feedThread = std::thread( [this]
48 threadStartProtect.lock();
49 threadStartProtect.unlock();
52 threadStartProtect.unlock();
57 if (!feedThread.joinable()) return;
63 void TFeed::threadMethod()
69 if (stopThread) return;
71 tlen = Demuxer::getInstance()->writeTeletext();
76 // Log::getInstance()->log("Tfeed", Log::DEBUG, "written");
81 MILLISLEEP(20); //Performance Issue Marten