Solved

thread safe smart pointers

Posted on 2009-05-15
2
370 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now