Date: Sat, 20 Nov 2004 04:54:22 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 65519 for review Message-ID: <200411200454.iAK4sMwI013199@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=65519 Change 65519 by davidxu@davidxu_alona on 2004/11/20 04:53:24 Pass curthread to thr_mutex_init. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_spinlock.c#2 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_spinlock.c#2 (text+ko) ==== @@ -129,9 +129,9 @@ int i; if (initialized != 0) { - _thr_mutex_reinit(&spinlock_static_lock); + _thr_mutex_reinit(_get_curthread(), &spinlock_static_lock); for (i = 0; i < spinlock_count; i++) - _thr_mutex_reinit(&extra[i].lock); + _thr_mutex_reinit(_get_curthread(), &extra[i].lock); } else { if (pthread_mutex_init(&spinlock_static_lock, NULL)) PANIC("Cannot initialize spinlock_static_lock");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411200454.iAK4sMwI013199>