Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [nathanw_sa] basesrc/lib/libpthread



Module Name:    basesrc
Committed By:   nathanw
Date:           Fri Oct  4 00:26:53 UTC 2002

Modified Files:
        basesrc/lib/libpthread [nathanw_sa]: pthread_mutex.c

Log Message:
Tweak pthread_mutex_lock(): Move the "slow" code to another function
and only call pthread_self() inside that function.

Don't use pthread_self() to track ownership; just stash the stack
pointer. Translation to thread IDs can be done post-mortem if
necessary (Thanks to Greg Hudson for pointing this out).


To generate a diff of this commit:
cvs rdiff -r1.1.2.11 -r1.1.2.12 basesrc/lib/libpthread/pthread_mutex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index