process.cc (13206:c944ef4abb48) process.cc (13207:034ca389a810)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 222 unchanged lines hidden (view full) ---

231{
232 if (inc_kids)
233 forEachKid([](Process *p) { p->syncResetOff(true); });
234
235 _syncReset = false;
236}
237
238void
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 222 unchanged lines hidden (view full) ---

231{
232 if (inc_kids)
233 forEachKid([](Process *p) { p->syncResetOff(true); });
234
235 _syncReset = false;
236}
237
238void
239Process::finalize()
240{
241 for (auto s: staticSensitivities)
242 s->finalize();
243};
244
245void
246Process::run()
247{
248 bool reset;
249 do {
250 reset = false;
251 try {
252 func->call();
253 } catch(ScHalt) {

--- 17 unchanged lines hidden (view full) ---

271void
272Process::setDynamic(DynamicSensitivity *s)
273{
274 if (dynamicSensitivity) {
275 dynamicSensitivity->clear();
276 delete dynamicSensitivity;
277 }
278 dynamicSensitivity = s;
239Process::run()
240{
241 bool reset;
242 do {
243 reset = false;
244 try {
245 func->call();
246 } catch(ScHalt) {

--- 17 unchanged lines hidden (view full) ---

264void
265Process::setDynamic(DynamicSensitivity *s)
266{
267 if (dynamicSensitivity) {
268 dynamicSensitivity->clear();
269 delete dynamicSensitivity;
270 }
271 dynamicSensitivity = s;
279 if (dynamicSensitivity)
280 dynamicSensitivity->finalize();
281}
282
283void
284Process::cancelTimeout()
285{
286 if (timeoutEvent.scheduled())
287 scheduler.deschedule(&timeoutEvent);
288}

--- 109 unchanged lines hidden ---
272}
273
274void
275Process::cancelTimeout()
276{
277 if (timeoutEvent.scheduled())
278 scheduler.deschedule(&timeoutEvent);
279}

--- 109 unchanged lines hidden ---