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

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

320 virtual Fiber *fiber() { return Fiber::primaryFiber(); }
321
322 static Process *newest() { return _newest; }
323
324 void lastReport(::sc_core::sc_report *report);
325 ::sc_core::sc_report *lastReport() const;
326
327 protected:
328 Process(const char *name, ProcessFuncWrapper *func, bool _dynamic,
329 bool needs_start);
328 Process(const char *name, ProcessFuncWrapper *func, bool _dynamic);
329
330 static Process *_newest;
331
332 virtual ~Process()
333 {
334 delete func;
335 for (auto s: staticSensitivities)
336 delete s;

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

341
342 ProcessFuncWrapper *func;
343 sc_core::sc_curr_proc_kind _procKind;
344 bool _needsStart;
345 bool _dynamic;
346 bool _isUnwinding;
347 bool _terminated;
348
349 void terminate();
350
351 bool _suspended;
352 bool _suspendedReady;
353 bool _disabled;
354
355 bool _syncReset;
356
357 int refCount;
358

--- 32 unchanged lines hidden ---