public LockCookie UpgradeToWriterLock(TimeSpan timeout) { int ms = CheckTimeout (timeout); return UpgradeToWriterLock (ms); }