MCPcopy Create free account
hub / github.com/DFHack/dfhack / setJobResumed

Function setJobResumed

plugins/workflow.cpp:1179–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177static std::string shortJobDescription(df::job *job);
1178
1179static void setJobResumed(color_ostream &out, ProtectedJob *pj, bool goal)
1180{
1181 bool current = pj->isResumed();
1182
1183 pj->set_resumed(goal);
1184
1185 if (goal != current)
1186 {
1187 out.print("{} {}{}\n",
1188 (goal ? "Resuming" : "Suspending"),
1189 shortJobDescription(pj->actual_job),
1190 (!goal || pj->isActuallyResumed() ? "" : " (delayed)"));
1191 }
1192}
1193
1194static void update_jobs_by_constraints(color_ostream &out)
1195{

Callers 1

Calls 5

shortJobDescriptionFunction · 0.85
isResumedMethod · 0.80
set_resumedMethod · 0.80
isActuallyResumedMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected