K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-09-01T03:11:21.399138Z K 7 svn:log V 386 Change atfork lock from mutex to rwlock, also make mutexes used by malloc() module private type, when private type mutex is locked/unlocked, thread critical region is entered or leaved. These changes makes fork() async-signal safe which required by POSIX. Note that user's atfork handler still needs to be async-signal safe, but it is not problem of libthr, it is user's responsiblity. END