sc_clock.cc (13135:4bb2f323fb1a) sc_clock.cc (13180:79e680f62779)
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

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

56 ::sc_core::sc_time _period) :
57 ScEvent([this]() { tick(); }),
58 clock(clock), _period(_period), _name(clock->name()),
59 funcWrapper(clock, to ? &::sc_core::sc_clock::tickUp :
60 &::sc_core::sc_clock::tickDown)
61 {
62 _name += (to ? ".up_tick" : ".down_tick");
63 _procName = _name + ".p";
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

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

56 ::sc_core::sc_time _period) :
57 ScEvent([this]() { tick(); }),
58 clock(clock), _period(_period), _name(clock->name()),
59 funcWrapper(clock, to ? &::sc_core::sc_clock::tickUp :
60 &::sc_core::sc_clock::tickDown)
61 {
62 _name += (to ? ".up_tick" : ".down_tick");
63 _procName = _name + ".p";
64 p = new Method(_procName.c_str(), &funcWrapper);
64 p = new Method(_procName.c_str(), &funcWrapper, true);
65 scheduler.reg(p);
66 scheduler.dontInitialize(p);
67 }
68
69 ~ClockTick()
70 {
71 if (scheduled())
72 scheduler.deschedule(this);

--- 98 unchanged lines hidden ---
65 scheduler.reg(p);
66 scheduler.dontInitialize(p);
67 }
68
69 ~ClockTick()
70 {
71 if (scheduled())
72 scheduler.deschedule(this);

--- 98 unchanged lines hidden ---