python: Fix the reference counting for python events placed on the eventq.
authorNathan Binkert <nate@binkert.org>
Mon, 10 Nov 2008 19:51:18 +0000 (11:51 -0800)
committerNathan Binkert <nate@binkert.org>
Mon, 10 Nov 2008 19:51:18 +0000 (11:51 -0800)
commit4e02e7c217a1ee81dc16c378582697dd5a14de47
tree6d39beaabb1df252632af16931827544aab44480
parent1adfe5c7f3368c4225ff685ddcd66b6280c7599f
python: Fix the reference counting for python events placed on the eventq.
We need to add a reference when an object is put on the C++ queue, and remove
a reference when the object is removed from the queue.  This was not happening
before and caused a memory problem.
src/python/m5/event.py
src/python/swig/event.i
src/python/swig/pyevent.cc
src/python/swig/pyevent.hh
src/sim/eventq.hh