sc_event.cc (13089:2cd69e58c0f8) sc_event.cc (13279:de51c5711c1a)
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

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

25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/core/event.hh"
32#include "systemc/ext/core/sc_event.hh"
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

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

25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/core/event.hh"
32#include "systemc/ext/core/sc_event.hh"
33#include "systemc/ext/core/sc_module.hh"
33
34namespace sc_core
35{
36
37
38/*
39 * sc_event_and_list
40 */

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

306 return expr;
307}
308
309
310/*
311 * sc_event
312 */
313
34
35namespace sc_core
36{
37
38
39/*
40 * sc_event_and_list
41 */

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

307 return expr;
308}
309
310
311/*
312 * sc_event
313 */
314
314sc_event::sc_event() : _gem5_event(new ::sc_gem5::Event(this)) {}
315sc_event::sc_event() :
316 _gem5_event(new ::sc_gem5::Event(
317 this, sc_core::sc_gen_unique_name("event")))
318{}
315
316sc_event::sc_event(const char *_name) :
317 _gem5_event(new ::sc_gem5::Event(this, _name))
318{}
319
320sc_event::~sc_event() { delete _gem5_event; }
321
322const char *sc_event::name() const { return _gem5_event->name().c_str(); }

--- 72 unchanged lines hidden ---
319
320sc_event::sc_event(const char *_name) :
321 _gem5_event(new ::sc_gem5::Event(this, _name))
322{}
323
324sc_event::~sc_event() { delete _gem5_event; }
325
326const char *sc_event::name() const { return _gem5_event->name().c_str(); }

--- 72 unchanged lines hidden ---