Ramkumar Ramachandra <artag...@gmail.com> writes: > Hi Philip, > > Philip Martin writes: >> Most of the functions don't share any state between threads, so they >> have no atomic issues. svn_io_temp_dir is one of the few that does, >> so it uses svn_atomic__init_once. I think the file perms stuff should >> also use it. > > I see. Could you point me to some functions that share some state > between threads or some sort of manual? I want to see how to do it > right- I'm not satisfied with my current understanding.
Generally it would be functions that access a static variable, or that make calls to library initialisation functions. -- Philip