K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-11-02T06:58:01.262672Z K 7 svn:log V 382 For simple mutex, we don't use thread id as owner data, instead use some contants. This eliminates the need to link the mutex into thread's private list, saves some cycles. The m_owner is pointer of curthread, which is always duplicated in child process after fork(), so for atfork handler in child process which wants to unlock the mutex, it will success rather than return EPERM. END