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/>.
25 TFeed::TFeed(Callback* tcb): cb(*tcb)
44 threadStartProtect.lock();
45 feedThread = std::thread( [this]
47 threadStartProtect.lock();
48 threadStartProtect.unlock();
51 threadStartProtect.unlock();
56 if (!feedThread.joinable()) return;
62 void TFeed::threadMethod()
68 if (stopThread) return;
70 tlen = Demuxer::getInstance()->writeTeletext();
75 // Log::getInstance()->log("Tfeed", Log::DEBUG, "written");
80 MILLISLEEP(20); //Performance Issue Marten