process.cc (13102:f9a4fa519bb3) process.cc (13131:bf07048d69e4)
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

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

385 new ::sc_core::sc_report(*report));
386 } else {
387 _lastReport = nullptr;
388 }
389}
390
391::sc_core::sc_report *Process::lastReport() const { return _lastReport.get(); }
392
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

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

385 new ::sc_core::sc_report(*report));
386 } else {
387 _lastReport = nullptr;
388 }
389}
390
391::sc_core::sc_report *Process::lastReport() const { return _lastReport.get(); }
392
393Process::Process(const char *name, ProcessFuncWrapper *func, bool _dynamic) :
393Process::Process(const char *name, ProcessFuncWrapper *func) :
394 ::sc_core::sc_process_b(name), excWrapper(nullptr), func(func),
394 ::sc_core::sc_process_b(name), excWrapper(nullptr), func(func),
395 _needsStart(true), _dynamic(_dynamic), _isUnwinding(false),
396 _terminated(false), _suspended(false), _disabled(false),
397 _syncReset(false), refCount(0), stackSize(::Fiber::DefaultStackSize),
398 dynamicSensitivity(nullptr)
395 _needsStart(true), _isUnwinding(false), _terminated(false),
396 _suspended(false), _disabled(false), _syncReset(false), refCount(0),
397 stackSize(::Fiber::DefaultStackSize), dynamicSensitivity(nullptr)
399{
398{
399 _dynamic =
400 (::sc_core::sc_get_status() >
401 ::sc_core::SC_BEFORE_END_OF_ELABORATION);
400 _newest = this;
401}
402
403void
404Process::terminate()
405{
406 _terminated = true;
407 _suspendedReady = false;

--- 20 unchanged lines hidden ---
402 _newest = this;
403}
404
405void
406Process::terminate()
407{
408 _terminated = true;
409 _suspendedReady = false;

--- 20 unchanged lines hidden ---