DragonFly BSD
DragonFly commits List (threaded) for 2006-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/kern kern_synch.c src/sys/sys systm.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 27 May 2006 11:15:03 -0700 (PDT)

:Matthew Dillon wrote:
:>   Log:
:>   Implement msleep()...
:>   Requested-by: Numerous people, and its time has come now.
:
:The technical details are beyond me, but that comment
:caught my attention.  Can you explain in lay terms why
:this is important enough that people would ask for it?
:
:Thanks.

    It just hides the internals of interlocking a spinlock and a tsleep
    cal.  It's about four lines of code, but it's rather messy to repeat
    it over and over again in all the places where such an interlock is
    needed.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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