process.cc (12996:17ec70f9841e) process.cc (12997:cfc14d8f4725)
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

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

328 if (disabled())
329 return;
330 if (suspended())
331 _suspendedReady = true;
332 else
333 scheduler.ready(this);
334}
335
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

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

328 if (disabled())
329 return;
330 if (suspended())
331 _suspendedReady = true;
332 else
333 scheduler.ready(this);
334}
335
336void
337Process::lastReport(::sc_core::sc_report *report)
338{
339 if (report) {
340 _lastReport = std::unique_ptr<::sc_core::sc_report>(
341 new ::sc_core::sc_report(*report));
342 } else {
343 _lastReport = nullptr;
344 }
345}
346
347::sc_core::sc_report *Process::lastReport() const { return _lastReport.get(); }
348
336Process::Process(const char *name, ProcessFuncWrapper *func,
337 bool _dynamic, bool needs_start) :
338 ::sc_core::sc_object(name), excWrapper(nullptr), func(func),
339 _needsStart(needs_start), _dynamic(_dynamic), _isUnwinding(false),
340 _terminated(false), _suspended(false), _disabled(false),
341 _syncReset(false), refCount(0), stackSize(::Fiber::DefaultStackSize),
342 dynamicSensitivity(nullptr)
343{

--- 12 unchanged lines hidden ---
349Process::Process(const char *name, ProcessFuncWrapper *func,
350 bool _dynamic, bool needs_start) :
351 ::sc_core::sc_object(name), excWrapper(nullptr), func(func),
352 _needsStart(needs_start), _dynamic(_dynamic), _isUnwinding(false),
353 _terminated(false), _suspended(false), _disabled(false),
354 _syncReset(false), refCount(0), stackSize(::Fiber::DefaultStackSize),
355 dynamicSensitivity(nullptr)
356{

--- 12 unchanged lines hidden ---