•        0

ptr.h is a c++ smart pointer template which uses semaphores to for non-blocking thread safe reference counted memory management. The delete mechanism is a generic parameterized template, so it works for arrays and other resoures as well.



comments powered by Disqus

Related Projects

NoPtr C++ Library

This library helps you avoid the use of raw pointers in your C++ code. The classes are proxies that provide strict ownership and reference checking, even in STL containers, and help eliminate resource leaks and dangling references.

Itl - ITL is a yet another template library, a small extension to the STL functionality, designed fo

ITL is a set of templates like shared_ptr and others, designed to be easy reused in your code. You can simple copy shared_ptr.h and couple of header files specified in the shared_ptr.h to your project to get shared_ptrs working, so opposite to boost library, it is easy to integrate only a small chunk of the YTL into your code.

C-ptr - A simple ScopedGuard for C objects in C++.

When working with C APIs in C++, I've often caught myself writing a class when all I really want is memory management. This ScopedGuard takes it's "rollback" function as a template parameter. That means you can write things like foo * foo_init( ); int foo_doit( foo *, int ); void foo_free( foo * ); class bar { private: ptr::c<foo,foo_free> my_foo; public: bar( ) : my_foo( foo_init() ) { /* ... */ } int doit( ) { return foo_doit( my_foo, 0 ); } };The guard is boost::noncopyable and only considers

Cpp-dynamic-static-arrays - Dynamic &amp; Static Arrays for C++

Collection of C++ arrays for various purposes. Static arrays are allocated on the stack. Dynamic arrays are allocated on the heap. Resizable arrays are dynamic arrays with changeable size. Ptr arrays are just pointers to somewhere. All arrays controls buffer overflows. Algorithms can be written in general manner without knowing specific type of arrays manipulated.

Nsupdate-webif - NSUpdate Web Interface

Simple to use web front-end for nsupdate to be used for DDNS supporting domains. The interface gives you a list of your domain records (for now only: A, PTR, CNAME, TXT), to make it possible to delete records easily. Your domain must support AXFR. Any suggestion or patch is welcome. The project is licensed under WTFPL.

Easyenter - Easy ticket online sales software

Igl_USa This project aims to develop a web software for selling tickets online. In addiction to that it is part of Unibatec´s Java course. Ptr_BR Este projeto tem como objetivo desenvolver um software para vendas de ingressos online. O mesmo faz parte do curso Java na Unibratec-JP.

Portgrep - Tool for finding string in FreeBSD ports tree

portgrep is a tool that can help to analize existing FreeBSD ports and how they use different variables and etc. It is similar to this command: find /usr/ports/ -name Makefile -exec grep -H STRING {} \\;Installationfetch current version of portgrep extract it change directory make make install UsageFor example I want to know were and how Boost's shared_prt library is used: portgrep Makefile shared_ptrOutput: Found in: /usr/ports/devel/libopkele/MakefileBUILD_DEPENDS= ${LOCALBASE}/include/boost/s

Hpjpc - High-Performance Java Platform Computing

The HPJPC project is based on the High-Performance Java Platform Computing book by Thomas W. Christopher and George K. Thiruvathukal, which was published by Prentice Hall PTR and Sun Microsystems Press (2000) and is no longer in print. We are now making the book and its examples available as a FOSS and Creative Commons effort with a new version of the book expected by Fall 2009. Please do not hesitate to contact George K. Thiruvathukal, George K. Thiruvathukal, with any questions or to help us o

Beechland - Collection of algorithms since 1997, mostly in the abstraction of reusable algorithms an

More detailed description to come later. The intent is to allow others to benefit from constructs I found useful or algorithms that are often left as an "exercise for the reader". In return, I hope to receive constructive feedback from the community. Early work was developed in collaboration with Sherman Adelson. The first collaborative work was on smart pointers in 1997 before auto_ptr<> existed (as far as I know).