On Tue, 13 Dec 2005, Tim Blechmann wrote:
hi kjetil,
Hm, no, actually, I can't do that. Snd isn't running with realtime priority, so if pd needs to wait for snd, pd will in practice lose its realtime priority when it has to wait for Snd. Miller P.: Please apply Tim's threadsafe gensym to your version. :-)
i know ... priority inversion and all the stuff ... the problem of the threadsafe gensym implementation ... it's using a thread lock, too ... although only for the inserting into the hash table ... i've got a lockfree thread safe implementation of a hash table on my hard drive, but i wrote it in c++ and it's only tested on x86/linux ...
But its the same hash that is created anyway right? So all I got to do is to cut and paste pd-s gensym implementation into my code and call the function and hash-table for something else, and then I'm done.