Deleted Added
sdiff udiff text old ( 13317:36c574a4036e ) new ( 13328:d5f4e801436a )
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

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

354
355void
356Process::ready()
357{
358 if (disabled())
359 return;
360 if (suspended())
361 _suspendedReady = true;
362 else if (!scheduled())
363 scheduler.ready(this);
364}
365
366void
367Process::lastReport(::sc_core::sc_report *report)
368{
369 if (report) {
370 _lastReport = std::unique_ptr<::sc_core::sc_report>(

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

376
377::sc_core::sc_report *Process::lastReport() const { return _lastReport.get(); }
378
379Process::Process(const char *name, ProcessFuncWrapper *func, bool internal) :
380 ::sc_core::sc_process_b(name), excWrapper(nullptr),
381 timeoutEvent([this]() { this->timeout(); }),
382 func(func), _internal(internal), _timedOut(false), _dontInitialize(false),
383 _needsStart(true), _isUnwinding(false), _terminated(false),
384 _scheduled(false), _suspended(false), _disabled(false),
385 _syncReset(false), syncResetCount(0), asyncResetCount(0), _waitCount(0),
386 refCount(0), stackSize(::Fiber::DefaultStackSize),
387 dynamicSensitivity(nullptr)
388{
389 _dynamic =
390 (::sc_core::sc_get_status() >
391 ::sc_core::SC_BEFORE_END_OF_ELABORATION);
392 _newest = this;
393}
394
395void

--- 45 unchanged lines hidden ---