scheduler.cc (13203:76ee4971fd9e) scheduler.cc (13207:034ca389a810)
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()) {
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) {
107 p->popListNode();
108
109 if (p->dontInitialize()) {
110 if (!p->hasStaticSensitivities() && !p->internal()) {
111 SC_REPORT_WARNING(
112 "(W558) disable() or dont_initialize() called on "
113 "process with no static sensitivity, it will be "
114 "orphaned", p->name());

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

135
136 status(StatusOther);
137}
138
139void
140Scheduler::reg(Process *p)
141{
142 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 ---
143 // If not marked as dontInitialize, mark as ready.
144 if (!p->dontInitialize())
145 p->ready();
146 } else {
147 // Otherwise, record that this process should be initialized once we
148 // get there.
149 initList.pushLast(p);
150 }

--- 333 unchanged lines hidden ---