MCPcopy Create free account
hub / github.com/SIPp/sipp / set_paused

Method set_paused

src/call_generation_task.cpp:198–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void CallGenerationTask::set_paused(bool new_paused)
199{
200 if (!instance) {
201 /* Doesn't do anything, we must be in server mode. */
202 return;
203 }
204 if (new_paused) {
205 instance->setPaused();
206 } else {
207 instance->setRunning();
208 if (users >= 0) {
209 set_users(users);
210 } else {
211 set_rate(rate);
212 }
213 }
214 paused = new_paused;
215}
216
217void CallGenerationTask::set_rate(double new_rate)
218{

Callers

nothing calls this directly

Calls 2

setPausedMethod · 0.80
setRunningMethod · 0.80

Tested by

no test coverage detected