Closed
Bug 545050
Opened 16 years ago
Closed 11 years ago
Want macros for implementing reference counting without QI support
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: zwol, Unassigned)
References
Details
Sometimes you want to deCOMtaminate a class without also getting rid of reference counting, but right now, we don't have any macros that give you a canned AddRef/Release definition without also providing QueryInterface support. Can we please add canned AddRef/Release macros, suitable for use with nsRefPtr<>, to nsAutoPtr.h or similar?
Comment 1•16 years ago
|
||
NS_IMPL_ADDREF
NS_IMPL_RELEASE
So you just need a _DECL?
| Reporter | ||
Comment 2•16 years ago
|
||
That and maybe some documentation - it wasn't clear to me that it was safe to use NS_IMPL_ADDREF/RELEASE with non-COM interfaces (because of the NS_ASSERT_OWNINGTHREAD). Also, do we *want* NS_ASSERT_OWNINGTHREAD for the general case of non-COM objects?
Comment 3•11 years ago
|
||
These macros exist now. You can even cycle collect them.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•