48
void CSObject::retain(const char *func, const char *file, uint32_t line)
50
CSException::throwAssertion(func, file, line, "Non-referenced object cannot be referenced");
47
53
void CSObject::retain()
49
55
CSException::throwAssertion(CS_CONTEXT, "Non-referenced object cannot be referenced");
60
void CSObject::release(const char *, const char *, uint32_t )
52
62
void CSObject::release()
59
void CSObject::retain(const char *func, const char *file, uint32_t line)
61
CSException::throwAssertion(CS_CONTEXT, "Non-referenced object cannot be referenced");
64
void CSObject::release(const char *func, const char *file, uint32_t line)
71
68
CSObject *CSObject::getKey() { CSException::throwCoreError(CS_CONTEXT, CS_ERR_IMPL_MISSING, __FUNC__); return NULL; }
85
82
void CSObject::setNextLink(CSObject *) { CSException::throwCoreError(CS_CONTEXT, CS_ERR_IMPL_MISSING, __FUNC__); }
87
84
void CSObject::setPrevLink(CSObject *) { CSException::throwCoreError(CS_CONTEXT, CS_ERR_IMPL_MISSING, __FUNC__); }
87
* ---------------------------------------------------------------
92
void CSStaticObject::retain(const char *, const char *, uint32_t )
94
void CSStaticObject::retain()
100
void CSStaticObject::release(const char *, const char *, uint32_t )
102
void CSStaticObject::release()
89
109
* ---------------------------------------------------------------
90
110
* REFERENCE OBJECTS
92
113
CSRefObject::CSRefObject():
104
125
ASSERT(iRefCount == 0);
129
void CSRefObject::retain(const char *func, const char *file, uint32_t line)
107
131
void CSRefObject::retain()
110
135
CSException::throwAssertion(CS_CONTEXT, "Freed object being retained.");
114
cs_mm_track_memory(NULL, NULL, 0, this, true, iRefCount, iTrackMe);
139
cs_mm_track_memory(func, file, line, this, true, iRefCount, iTrackMe);
144
void CSRefObject::release(const char *func, const char *file, uint32_t line)
118
146
void CSRefObject::release()
123
cs_mm_track_memory(NULL, NULL, 0, this, false, iRefCount, iTrackMe);
137
void CSRefObject::retain(const char *func, const char *file, uint32_t line)
140
cs_mm_print_track(func, file, line, this, true, iRefCount);
143
void CSRefObject::release(const char *func, const char *file, uint32_t line)
147
152
cs_mm_track_memory(func, file, line, this, false, iRefCount, iTrackMe);
150
156
terminate = true;
165
void CSRefObject::startTracking()
168
cs_mm_track_memory(NULL, NULL, 0, this, true, iRefCount, iTrackMe);
178
190
ASSERT(iRefCount == 0);
194
void CSSharedRefObject::retain(const char *func, const char *file, uint32_t line)
181
196
void CSSharedRefObject::retain()
186
cs_mm_track_memory(NULL, NULL, 0, this, true, iRefCount, iTrackMe);
202
cs_mm_track_memory(func, file, line, this, true, iRefCount, iTrackMe);
208
void CSSharedRefObject::release(const char *func, const char *file, uint32_t line)
191
210
void CSSharedRefObject::release()
197
cs_mm_track_memory(NULL, NULL, 0, this, false, iRefCount, iTrackMe);
217
cs_mm_track_memory(func, file, line, this, false, iRefCount, iTrackMe);