Search the web
Sign In
New User? Sign Up
liblf-dev · Lockfree data structure implementers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
SVN repository started   Message List  
Reply | Forward Message #272 of 300 |
Re: [liblf-dev] SVN repository started



Hi Bjorn, I'm learning about what's available in different compilers in the way
of atomic compare and swap (and other operations).

Are you still working on this? It looks like you have C&S, for example, for OSX
but not the others.

I'd like to have some kind of lock free associative container, maybe a skip list
or something, maybe just a linked list of key/value records, not sure yet, that
transparently falls back on granular locking if there's no atomic C&S (one mutex
per node) -- probably by making the user supply a mutex to the "atomic"
functions (even if it doesn't get used on platforms that have atomic C&S).

What do you think?

Have you used ThreadSafeList much? How about the AsyncOperation queue?

Finally, what kind of license were you planning to use for this code?


Reed


Bjorn Roche wrote:
>
>
> Hey all,
>
> I've started a subversion repo here: http://liblf.xowave.com/.
> <http://liblf.xowave.com/.> It is
> publicly readable, and I'm happy to give people write access to folks
> who want to contribute. It's pretty sloppy at the moment, but I think
> it's a start.
>
> Here's a quick description of the files:
>
> Atomic.h - has atomic primitives for things needed in the rest of the
> code. Conditional compiling should make this extensible to any
> platform, but right now it works on Mac OS X and might be good enough
> for Linux. I'd love to see the Linux side fixed up, not to mention
> some windows work.
>
> Fifo.h - your basic non-blocking fifo. Generically typed. There is
> also some old commented code that could be used as a blocking Fifo.
>
> Async.cc
> Async.h - implement an asynchronous Queue of "operations" that can be
> performed in a separate thread. Useful for reading from or to a file
> in the background. A nice improvement on this would be an interface
> for reclaiming completed operations.
>
> sleep.cc
> sleep.h - just for short sleeps. Useful for testing and also the few
> functions that "block".
>
> ThreadSafeList.h - a Queue that can (in theory) be edited from one
> thread while iterated through in another.
>
> makefile - building and cleaning and running the test program. I
> think this requires gmake.
>
> test.cc - some tests.
>
> bjorn
>
> -----------------------------
> Bjorn Roche
> XO Wave
> Digital Audio Production and Post-Production Software
> http://www.xowave.com <http://www.xowave.com>
> http://blog.bjornroche.com <http://blog.bjornroche.com>
> http://myspace.com/xowave <http://myspace.com/xowave>
>
>




Wed Jul 2, 2008 6:27 pm

stranger2323
Offline Offline
Send Email Send Email

Forward
Message #272 of 300 |
Expand Messages Author Sort by Date

Hey all, I've started a subversion repo here: http://liblf.xowave.com/. It is publicly readable, and I'm happy to give people write access to folks who want to...
Bjorn Roche
bejayoharen
Offline Send Email
Mar 27, 2007
8:47 pm

Hey all, I've started a subversion repo here: http://liblf.xowave.com/. It is publicly readable, and I'm happy to give people write access to folks who want to...
Bjorn Roche
bejayoharen
Offline Send Email
Mar 27, 2007
9:22 pm

Hey all, I've started a subversion repo here: http://liblf.xowave.com/. It is publicly readable, and I'm happy to give people write access to folks who want to...
Bjorn Roche
bejayoharen
Offline Send Email
Mar 27, 2007
10:08 pm

Hi Bjorn, I'm learning about what's available in different compilers in the way of atomic compare and swap (and other operations). Are you still working on...
Reed Hedges
stranger2323
Offline Send Email
Jul 2, 2008
6:27 pm

Hey Reed, I haven't even looked at this stuff in forever, but I'm happy to revisit if there's interest. I think the idea of some simple datastructures is a...
Bjorn Roche
bejayoharen
Offline Send Email
Jul 2, 2008
7:43 pm

Sorry I missed the licensing question. I don't want to lock down to GPL either, but I am happy to be compatible with it. My understanding has always been that...
Bjorn Roche
bejayoharen
Offline Send Email
Jul 3, 2008
1:34 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help