Do not hold self-references. This then avoids the problem of having to
authorMichael Brown <mcb30@etherboot.org>
Tue, 15 May 2007 16:53:46 +0000 (16:53 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 15 May 2007 16:53:46 +0000 (16:53 +0000)
commitb1755462ab344ff758c3a1e6ae0d10a729d96d1b
tree858bb7ba3d439be957f6b9530a0040b26c49f3f2
parent5471bfbbbe9f49f7be7f2ca92b8c99a02c435458
Do not hold self-references.  This then avoids the problem of having to
ensure that we only drop our self-reference exactly once.

To maintain the guarantee that an object won't go out of scope
unexpectedly while one of its event handlers is being called, the
event-calling functions now automatically obtain and drop extra
references.
src/core/downloader.c
src/core/hw.c
src/core/job.c
src/core/xfer.c
src/include/gpxe/interface.h
src/include/gpxe/job.h
src/include/gpxe/xfer.h