Are smart pointers threadsafe?

Raf Schietekat
Total Points:
16,585
Status Points:
16,585
Black Belt
May 9, 2008 5:28 AM PDT
Rate
 
#11 Reply to #10
The code was actually correct, if a bit convoluted, because the result of the postfix decrement was compared with 1, but keeping the original code would have been easier all right.



Intel Software Network Forums Statistics

8290 users have contributed to 31237 threads and 99111 posts to date.
In the past 24 hours, we have 8 new thread(s) 18 new posts(s), and 24 new user(s).

In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing...  Escalated as

Please welcome our newest member zq.x