scheduler.cc (12957:e54f9890363d) scheduler.cc (12959:33d9a39e40a3)
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

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

46{
47 for (Process *p = toFinalize.getNext(); p; p = toFinalize.getNext()) {
48 p->finalize();
49 p->popListNode();
50 }
51
52 for (Process *p = initList.getNext(); p; p = initList.getNext()) {
53 p->finalize();
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

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

46{
47 for (Process *p = toFinalize.getNext(); p; p = toFinalize.getNext()) {
48 p->finalize();
49 p->popListNode();
50 }
51
52 for (Process *p = initList.getNext(); p; p = initList.getNext()) {
53 p->finalize();
54 ready(p);
54 p->ready();
55 }
56
57 initReady = true;
58}
59
60void
61Scheduler::reg(Process *p)
62{
63 if (initReady) {
64 // If we're past initialization, finalize static sensitivity.
65 p->finalize();
66 // Mark the process as ready.
55 }
56
57 initReady = true;
58}
59
60void
61Scheduler::reg(Process *p)
62{
63 if (initReady) {
64 // If we're past initialization, finalize static sensitivity.
65 p->finalize();
66 // Mark the process as ready.
67 ready(p);
67 p->ready();
68 } else {
69 // Otherwise, record that this process should be initialized once we
70 // get there.
71 initList.pushLast(p);
72 }
73}
74
75void

--- 94 unchanged lines hidden ---
68 } else {
69 // Otherwise, record that this process should be initialized once we
70 // get there.
71 initList.pushLast(p);
72 }
73}
74
75void

--- 94 unchanged lines hidden ---