MCPcopy Create free account
hub / github.com/Haivision/srt / Runner

Method Runner

testing/testactivemedia.cpp:7–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7void SourceMedium::Runner()
8{
9 srt::ThreadName::set("SourceRN");
10
11 Verb() << VerbLock << "Starting SourceMedium: " << this;
12 for (;;)
13 {
14 auto input = med->Read(chunksize_);
15 if (input.payload.empty() && med->End())
16 {
17 Verb() << VerbLock << "Exiting SourceMedium: " << this;
18 return;
19 }
20 LOGP(applog.Debug, "SourceMedium(", typeid(*med).name(), "): [", input.payload.size(), "] MEDIUM -> BUFFER. signal(", &ready, ")");
21
22 lock_guard<std::mutex> g(buffer_lock);
23 buffer.push_back(input);
24 ready.notify_one();
25 }
26}
27
28MediaPacket SourceMedium::Extract()
29{

Callers

nothing calls this directly

Calls 15

setFunction · 0.85
VerbFunction · 0.85
OnReturnSetFunction · 0.85
swapFunction · 0.85
push_backMethod · 0.80
ReadMethod · 0.45
emptyMethod · 0.45
EndMethod · 0.45
nameMethod · 0.45
sizeMethod · 0.45
notify_oneMethod · 0.45
wait_forMethod · 0.45

Tested by

no test coverage detected