Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

thread safe smart pointers

Posted on 2009-05-15
2
Medium Priority
?
378 Views
Last Modified: 2013-11-26
Hello
Does anybody have an example of implementing thread safe pointer reference counting ?

I would be happy for a piece of sample code,that works with Visual studio 2005
0
Comment
Question by:lhl60
2 Comments
 
LVL 40

Expert Comment

by:evilrix
ID: 24393758
Try taking a look at how it's implemented in boost::share_ptr

http://www.boost.org/doc/libs/1_38_0/libs/smart_ptr/shared_ptr.htm
0
 
LVL 4

Accepted Solution

by:
lhl60 earned 0 total points
ID: 24401993
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question