Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AtomicDouble class -- update

 
Henry Wong
author
Marshal
Pie
Posts: 21506
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Six plus years ago, I wrote an AtomicDouble class. It was done for two reasons. I didn't like that Sun didn't have one in their concurrent atomic package, and I wanted to show that the atomic classes can be use to implement any atomic data structure -- without the need for synchronization.

This was included as part of the examples for O'Reilly. And is the first hit when searched for at Google. Cool.


Anyway, went through some code today, and found that my version is later than the version on the internet. So, for anyone who is interested, here is an update of the class....



Hope this helps,
Henry

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic