Hi all, MRI has rb_str_locktmp/rb_str_unlocktmp functions for preventing several threads from writing to the same string. io.c in the MRI source has examples of its use.
Is there something similar in Rubinius? If not, I will probably hash the VALUE to a fixed set of mutexes (maybe #locks will be scaled to processor count) and use pthread_mutex_trylock to emulate that behavior... -- -- --- !ruby/object:MailingList name: rubinius-dev view: http://groups.google.com/group/rubinius-dev?hl=en post: [email protected] unsubscribe: [email protected] --- You received this message because you are subscribed to the Google Groups "rubinius-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
