2015年12月24日
摘要: Most people think that volatile variables are for concurrency. In some sense, this intuition is correct. However, the semantics of volatile variables ... 阅读全文
posted @ 2015-12-24 19:38 gyt929458988 阅读(222) 评论(0) 推荐(0)
摘要: Thestd::tr1:shared_ptrclass template is the big and famous sibling of another class template calledstd::tr1::weak_ptr. In this part I introduceweak_pt... 阅读全文
posted @ 2015-12-24 10:25 gyt929458988 阅读(966) 评论(0) 推荐(0)
摘要: For garbage collection (GC) to reclaim objects no longer in use by the program, thelogicallifetime of an object (the time that the application will us... 阅读全文
posted @ 2015-12-24 00:22 gyt929458988 阅读(328) 评论(0) 推荐(0)