Lockless Algorithms for Mere Mortals
It would seem to be a failing of the C language that ultimately prevents us from coming up with re-useable recipes for this. Macros or generics of sufficient power in a language with an advanced type system should be able to accomplish this.I wonder, if language is the primary barrier here, if this is a way to integrate another language for specific small pieces like this.