Deleted Added
sdiff udiff text old ( 13203:76ee4971fd9e ) new ( 13207:034ca389a810 )
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

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

99 while ((c = updateList.getNext()))
100 c->popListNode();
101}
102
103void
104Scheduler::initPhase()
105{
106 for (Process *p = initList.getNext(); p; p = initList.getNext()) {
107 p->finalize();
108 p->popListNode();
109
110 if (p->dontInitialize()) {
111 if (!p->hasStaticSensitivities() && !p->internal()) {
112 SC_REPORT_WARNING(
113 "(W558) disable() or dont_initialize() called on "
114 "process with no static sensitivity, it will be "
115 "orphaned", p->name());

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

136
137 status(StatusOther);
138}
139
140void
141Scheduler::reg(Process *p)
142{
143 if (initDone) {
144 // If we're past initialization, finalize static sensitivity.
145 p->finalize();
146 // If not marked as dontInitialize, mark as ready.
147 if (!p->dontInitialize())
148 p->ready();
149 } else {
150 // Otherwise, record that this process should be initialized once we
151 // get there.
152 initList.pushLast(p);
153 }

--- 333 unchanged lines hidden ---