ssleep() (was Re: mention msleep() in porting_drivers.txt)
Now that I think about it, our msleep() is misnamed --- it should have
been called ssleep(). There's no "m" about it. Any objections to changing it?
#1 Updated by dillon over 8 years ago
:Now that I think about it, our msleep() is misnamed --- it should have
:been called ssleep(). There's no "m" about it. Any objections to changing it?
If we're gonna start throwing around different types of sleeps maybe
we should make the names more verbose. spin_sleep(), lockmgr_sleep(),
etc. We don't use them so often that they'll clutter up the code and
the longer names will make the code more readable.
#5 Updated by dillon about 7 years ago
I will revamp the *sleep() calls. Yes, at this point I think msleep() should
become ssleep() so msleep() can be used with mutex locks (mtx_t).
I will also change the serialize_sleep() calls to slzsleep(), since it looks
like we've given up on using longer names.