process.cc (13317:36c574a4036e) process.cc (13328:d5f4e801436a)
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;
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
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),
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 _suspended(false), _disabled(false), _syncReset(false), syncResetCount(0),
385 asyncResetCount(0), _waitCount(0), refCount(0),
386 stackSize(::Fiber::DefaultStackSize), dynamicSensitivity(nullptr)
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)
387{
388 _dynamic =
389 (::sc_core::sc_get_status() >
390 ::sc_core::SC_BEFORE_END_OF_ELABORATION);
391 _newest = this;
392}
393
394void

--- 45 unchanged lines hidden ---
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 ---