reference-counting
Reference-counting of std::string
I\'m looking at the code for basic_string (that is bundled with g++ 4.2.1).The copy constructor makes use of a grab() function to \"grab\" a copy of a string (increment its r开发者_高级运维eference-co[详细]
2023-01-09 00:54 分类:问答Synchronization primitive for shared usage counter?
Is there a Windows (or .NET) synchronization primitive that: can be shared across multiple processes on the same PC;[详细]
2023-01-07 03:48 分类:问答Is a dynamic array automatically deallocated when it goes out of scope?
in this example procedure foobar; var tab:array of integer; begin setlength(tab,10); 开发者_如何学Goend;[详细]
2023-01-05 03:22 分类:问答Is it okay to implement reference counting through composition?
Most common re-usable reference counted objects use private inheritance to implement re-use. I\'m not a huge fan of private inheritance, and I\'m curious if this is an acceptable way of handling thing[详细]
2022-12-26 17:32 分类:问答.NET asmx web services: serialize object property as string property to support versioning
I am in the process of upgrading our web services to support versioning. We will be publishing our versioned web services like so:[详细]
2022-12-25 06:22 分类:问答DataMapper Dates
Forgive me if this is a simple answer. But how do you get a Date from a DataMapper proper开发者_Go百科ty. For example:[详细]
2022-12-24 23:59 分类:问答Can you force a crash if a write occurs to a given memory location with finer than page granularity?
I\'m writing a program that for performance reasons uses shared memory (sockets and pipes as alternatives have been evaluated, and they are not fast enough for my task, generally speaking any IPC meth[详细]
2022-12-24 15:59 分类:问答Handling duplicates keys within an AVL tree
I want to make my avl-tree support duplicate keys but there is a problem with the default behavior of the binary search tree with duplicates that the rotation could make nodes with equal key be on the[详细]
2022-12-23 03:58 分类:问答problem in passing Id from asp.net to Javascript
I need to call a functoin on button click and pass the value of id into that function...here is what I m doing ...but I bet i m doing sth wrong bcoz its not working[详细]
2022-12-22 02:48 分类:问答Is this a correct summary of Cocoa reference counting?
Here\'s my understanding of it: Object are only retained (reference counter is incremented): when init from NSObject is ca开发者_C百科lled.[详细]
2022-12-21 09:57 分类:问答