Deleted Added
sdiff udiff text old ( 13059:4be5f408e128 ) new ( 13072:f2b83208ab54 )
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

--- 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();
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