process.hh (13260:4d18f1d20093) | process.hh (13285:86dc66ffac35) |
---|---|
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 --- 22 unchanged lines hidden (view full) --- 31#define __SYSTEMC_CORE_PROCESS_HH__ 32 33#include <functional> 34#include <memory> 35#include <vector> 36 37#include "base/fiber.hh" 38#include "systemc/core/list.hh" | 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 --- 22 unchanged lines hidden (view full) --- 31#define __SYSTEMC_CORE_PROCESS_HH__ 32 33#include <functional> 34#include <memory> 35#include <vector> 36 37#include "base/fiber.hh" 38#include "systemc/core/list.hh" |
39#include "systemc/core/module.hh" |
|
39#include "systemc/core/object.hh" 40#include "systemc/core/sched_event.hh" 41#include "systemc/core/sensitivity.hh" 42#include "systemc/ext/core/sc_event.hh" 43#include "systemc/ext/core/sc_module.hh" 44#include "systemc/ext/core/sc_process_handle.hh" 45 46namespace sc_core --- 79 unchanged lines hidden (view full) --- 126 127 bool dontInitialize() { return _dontInitialize; } 128 void dontInitialize(bool di) { _dontInitialize = di; } 129 130 void joinWait(::sc_core::sc_join *join) { joinWaiters.push_back(join); } 131 132 void waitCount(int count) { _waitCount = count; } 133 | 40#include "systemc/core/object.hh" 41#include "systemc/core/sched_event.hh" 42#include "systemc/core/sensitivity.hh" 43#include "systemc/ext/core/sc_event.hh" 44#include "systemc/ext/core/sc_module.hh" 45#include "systemc/ext/core/sc_process_handle.hh" 46 47namespace sc_core --- 79 unchanged lines hidden (view full) --- 127 128 bool dontInitialize() { return _dontInitialize; } 129 void dontInitialize(bool di) { _dontInitialize = di; } 130 131 void joinWait(::sc_core::sc_join *join) { joinWaiters.push_back(join); } 132 133 void waitCount(int count) { _waitCount = count; } 134 |
135 const char *uniqueName(const char *seed) { return nameGen.gen(seed); } 136 |
|
134 protected: 135 void timeout(); 136 137 Process(const char *name, ProcessFuncWrapper *func, bool internal=false); 138 139 static Process *_newest; 140 141 virtual ~Process() --- 44 unchanged lines hidden (view full) --- 186 187 StaticSensitivities staticSensitivities; 188 DynamicSensitivity *dynamicSensitivity; 189 ResetSensitivities resetSensitivities; 190 191 std::unique_ptr<::sc_core::sc_report> _lastReport; 192 193 std::vector<::sc_core::sc_join *> joinWaiters; | 137 protected: 138 void timeout(); 139 140 Process(const char *name, ProcessFuncWrapper *func, bool internal=false); 141 142 static Process *_newest; 143 144 virtual ~Process() --- 44 unchanged lines hidden (view full) --- 189 190 StaticSensitivities staticSensitivities; 191 DynamicSensitivity *dynamicSensitivity; 192 ResetSensitivities resetSensitivities; 193 194 std::unique_ptr<::sc_core::sc_report> _lastReport; 195 196 std::vector<::sc_core::sc_join *> joinWaiters; |
197 198 UniqueNameGen nameGen; |
|
194}; 195 196} // namespace sc_gem5 197 198#endif //__SYSTEMC_CORE_PROCESS_HH__ | 199}; 200 201} // namespace sc_gem5 202 203#endif //__SYSTEMC_CORE_PROCESS_HH__ |