On Monday 12 March 2007 12:36, Attilio Rao wrote: > > So you still get type checking, etc. I'm thinking maybe the simplest thing to > > do is to rename 'mtx_object', 'rw_object', and 'sx_object' fields to all > > be 'lock_object' and then do this: > > Even if this idea is not so bad (beacause we primitives are in a small > and controlled number of them) we have a lot of places to update for > that. A macro could be a temporary help, btw.
They are actually not very widespread at all, most uses are in macros in the headers or in the lock code itself. Nothing M-% in xemacs can't handle. :) % kgrep -l -E '(mtx|rw|sx)_object' kern/kern_condvar.c kern/kern_exit.c kern/kern_kse.c kern/kern_sig.c kern/kern_lock.c kern/kern_mutex.c kern/kern_rwlock.c kern/kern_sx.c kern/kern_synch.c kern/subr_witness.c sys/_mutex.h sys/_rwlock.h sys/lock.h sys/mutex.h sys/rwlock.h sys/sx.h sys/proc.h sys/systm.h -- John Baldwin _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"