[Buildbot-devel] scheduler questions

Brian Warner warner-buildbot at lothar.com
Fri Mar 17 00:39:35 UTC 2006


> If anyone is interested, I'd implemented a multiple-reader, single-writer
> subclass of the master locks for a very similar purpose about six months
> ago.

Interesting!

So, one of the features of the existing Lock class is that a Step or a Build
can wait for multiple locks, and it doesn't claim any of them until all of
them are free (to avoid deadlocks). Do you happen to know if your
multiple-reader class can handle this?

Also, am I correct in believing that if nobody ever claims the "writer" lock,
then your class can be used just as a multiple-holder semaphore?

thanks,
 -Brian




More information about the devel mailing list