User Tools

Site Tools


dev:reference_counting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
dev:reference_counting [2014/02/08 21:32] – converted doc/ReferenceCounting.html Credit:Mohamed Fawzi oschuettdev:reference_counting [2014/02/08 22:10] oschuett
Line 29: Line 29:
 ===== Sample code =====  ===== Sample code ===== 
 Some sample code to get a feeling of how it works... Some sample code to get a feeling of how it works...
-<code>+<code Fortran>
 ! create the matrix structure ! create the matrix structure
 call cp_fmstruct_create(my_struct,...) call cp_fmstruct_create(my_struct,...)
Line 51: Line 51:
 </code> </code>
  
-<code>+<code Fortran>
 subroutine my_env_set_matrix(my_env,matrix)  subroutine my_env_set_matrix(my_env,matrix) 
   type(my_env_type), pointer :: my_env   type(my_env_type), pointer :: my_env
Line 84: Line 84:
 ===== References ===== ===== References =====
   * Geamma et al., Patterns (Reference counting, I think)   * Geamma et al., Patterns (Reference counting, I think)
-  * Cocoa uses reference counting and there have been a couple of articles on it. They discuss retain cycles, but also auto-release pools, an extension to reference counting to be able to return temporary objects. This is not implemented in cp2k and hopefully avoidable (seeing the kind of code that there is in cp2k)  +  * Cocoa uses reference counting and there have been a couple of articles on it. They discuss retain cycles, but also auto-release pools, an extension to reference counting to be able to return temporary objects. This is not implemented in cp2k and hopefully avoidable (seeing the kind of code that there is in cp2k).   
-  * [[http://www.stepwise.com/Articles/Technical/HoldMe.html]] +
-  * [[http://www.stepwise.com/Articles/Technical/2001-03-11.01.html]] +
-  * [[http://www.stepwise.com/Articles/Technical/MemoryManagement.html]] +
-    +
  
dev/reference_counting.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1