MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / wrap_up

Method wrap_up

Processor/ThreadQueues.cpp:142–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void ThreadQueues::wrap_up(ThreadJob job)
143{
144#ifdef VERBOSE_QUEUES
145 cerr << "Wrap up " << available.size() << " threads" << endl;
146#endif
147 for (int i : available)
148 {
149 auto result = at(i)->result();
150 assert(result.output == job.output);
151 assert(result.type == job.type);
152 }
153 available.clear();
154
155 if (sync_point)
156 {
157 if (OnlineOptions::singleton.has_option("debug_sync"))
158 cerr << "stopping sync" << endl;
159 delete sync_point;
160 sync_point = 0;
161 }
162}
163
164TimerWithComm ThreadQueues::sum(const string& phase)
165{

Callers 14

addMethod · 0.80
dabit_sacrificeMethod · 0.80
edabit_sacrificeMethod · 0.80
sanitizeMethod · 0.80
apply_multipleMethod · 0.80
buffer_triplesMethod · 0.80
triple_sacrificeMethod · 0.80

Calls 4

resultMethod · 0.80
has_optionMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected