event.py (12024:4ae7a812176a) event.py (12041:52b3b120dbc0)
1# Copyright (c) 2017 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

39# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40#
41# Authors: Nathan Binkert
42
43import m5
44import _m5.event
45
46from _m5.event import GlobalSimLoopExitEvent as SimExit
1# Copyright (c) 2017 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

39# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40#
41# Authors: Nathan Binkert
42
43import m5
44import _m5.event
45
46from _m5.event import GlobalSimLoopExitEvent as SimExit
47from _m5.event import Event, getEventQueue, setEventQueue
47from _m5.event import PyEvent as Event
48from _m5.event import getEventQueue, setEventQueue
48
49mainq = None
50
51class EventWrapper(Event):
52 """Helper class to wrap callable objects in an Event base class"""
53
54 def __init__(self, func, **kwargs):
55 super(EventWrapper, self).__init__(**kwargs)

--- 33 unchanged lines hidden ---
49
50mainq = None
51
52class EventWrapper(Event):
53 """Helper class to wrap callable objects in an Event base class"""
54
55 def __init__(self, func, **kwargs):
56 super(EventWrapper, self).__init__(**kwargs)

--- 33 unchanged lines hidden ---