channel.cc (13059:4be5f408e128) channel.cc (13072:f2b83208ab54)
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

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

36
37Channel::Channel(sc_core::sc_prim_channel *_sc_chan) : _sc_chan(_sc_chan)
38{
39 allChannels.insert(this);
40}
41
42Channel::~Channel()
43{
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

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

36
37Channel::Channel(sc_core::sc_prim_channel *_sc_chan) : _sc_chan(_sc_chan)
38{
39 allChannels.insert(this);
40}
41
42Channel::~Channel()
43{
44 popListNode();
44 allChannels.erase(this);
45}
46
47void
48Channel::requestUpdate()
49{
50 scheduler.requestUpdate(this);
51}
52
53void
54Channel::asyncRequestUpdate()
55{
56 //TODO This should probably not request an update directly.
57 scheduler.requestUpdate(this);
58}
59
60std::set<Channel *> allChannels;
61
62} // namespace sc_gem5
45 allChannels.erase(this);
46}
47
48void
49Channel::requestUpdate()
50{
51 scheduler.requestUpdate(this);
52}
53
54void
55Channel::asyncRequestUpdate()
56{
57 //TODO This should probably not request an update directly.
58 scheduler.requestUpdate(this);
59}
60
61std::set<Channel *> allChannels;
62
63} // namespace sc_gem5