
Robert Ramey wrote:
Sohail Somani wrote:
Robert Ramey wrote:
Other than that, it looks good to me. Good job rewriting the dangerous parts rather than patching in the thread-safety. I looked into this in some detail. I concluded that a) it would be very hard to do and would muck the library and b) it would slow things down a lot. It has changed my whole perception as to how/when to use multi-threading.
I agree. I had the same change in perception after reading your code. Only thing that worries me is the portability of it.
LOL - well, at least we don't have to worry about portability of a threading library, primitives etc.
Those are things that can be fixed in a library which is much easier to fix than a compiler. -- Sohail Somani http://uint32t.blogspot.com