cpuevent.hh (2734:af0d50755df7) cpuevent.hh (3530:149c119b67a2)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

39/** This class creates a global list of events that need a pointer to a
40 * thread context. When a switchover takes place the events can be migrated
41 * to the new thread context, otherwise you could have a wake timer interrupt
42 * go off on a switched out cpu or other unfortunate events. This object MUST be
43 * dynamically allocated to avoid it being deleted after a cpu switch happens.
44 * */
45class CpuEvent : public Event
46{
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

39/** This class creates a global list of events that need a pointer to a
40 * thread context. When a switchover takes place the events can be migrated
41 * to the new thread context, otherwise you could have a wake timer interrupt
42 * go off on a switched out cpu or other unfortunate events. This object MUST be
43 * dynamically allocated to avoid it being deleted after a cpu switch happens.
44 * */
45class CpuEvent : public Event
46{
47 private:
47 protected:
48 /** type of global list of cpu events. */
49 typedef std::vector<CpuEvent *> CpuEventList;
50
51 /** Static list of cpu events that is searched every time a cpu switch
52 * happens. */
53 static CpuEventList cpuEventList;
54
55 /** The thread context that is switched to the new cpus. */

--- 34 unchanged lines hidden ---
48 /** type of global list of cpu events. */
49 typedef std::vector<CpuEvent *> CpuEventList;
50
51 /** Static list of cpu events that is searched every time a cpu switch
52 * happens. */
53 static CpuEventList cpuEventList;
54
55 /** The thread context that is switched to the new cpus. */

--- 34 unchanged lines hidden ---