reference-counting
Value stored during its initialization is never read
I am trying to create a Game so that I can change its data and save it back. I get two errors that are on the commented lines. Why am I getting these errors. I allocated the Game so I should have to r[详细]
2023-02-28 19:06 分类:问答Reference count is still 1 after [obj release], when it should be deallocated
When I create an object and check its retain count, I get 1 as expected. When I release the object and then check the retain count again, it is still 1. Shouldn\'t the object be deallocated, and the r[详细]
2023-02-15 04:20 分类:问答boost::shared_?? for non-pointer resources
Basically i need to do reference counting on certain resources (like an integer index) that are not inmediately equivalent to a pointer/address semantic; basically i need to pass开发者_开发百科 around[详细]
2023-02-12 00:10 分类:问答Making a reference-counted object in D using RefCounted!(T)
How do you use std.typecons.RefCounted!(T) to make a reference-counted object in D? I\'ve tried to figure out what std.array.Array does internally by looking at the source, but while I can read the s[详细]
2023-02-03 08:27 分类:问答What is the simplest augmentation to reference counting that will collect cycles?
Reference counting alone does not collect cycles but there are additional techniques that can collect cycles as well. What is the simplest such technique?[详细]
2023-02-01 13:54 分类:问答Qt atomic operations implementation
i\'ve been trying to find where and how the reference counting for Qt is implemented. The QBasicAtomicInt and QAtomicInt use the ref() and deref() functions which pro开发者_C百科vide an efficient refe[详细]
2023-01-24 20:43 分类:问答check existing shared_ptr when using enable_shared_from_this in c++?
Aside from catching the bad_weak_ptr error 开发者_如何学Gothrown when trying to call shared_from_this() on a pointer that is a raw pointer, is there a way of testing whether or not the object is being[详细]
2023-01-23 14:31 分类:问答What does cpython do to help detect object cycles(reference counting)?
From what I\'ve read about cpython it seems like it does reference counting + something extra to detect/free objects pointing to each other.(Correct me if I\'m wrong). Could someone explain the someth[详细]
2023-01-17 10:01 分类:问答Simple reference counting: smart pointers
I would like to implement a simple reference counting using smart pointers. The variable pointer represents pointer to stored object, reference_count represents total count of copies of the object.[详细]
2023-01-14 02:56 分类:问答What is the difference between Garbage Collection and Reference Counting in Mac OS
What 开发者_如何学Gois the difference between Garbage Collection and Reference Counting in Mac OS X.[详细]
2023-01-13 09:43 分类:问答