Deleted Added
sdiff udiff text old ( 13102:f9a4fa519bb3 ) new ( 13131:bf07048d69e4 )
full compact
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) :
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)
399{
400 _newest = this;
401}
402
403void
404Process::terminate()
405{
406 _terminated = true;
407 _suspendedReady = false;

--- 20 unchanged lines hidden ---