(self)
| 458 | self._roster.remove() |
| 459 | |
| 460 | def upgrade(self): |
| 461 | # WARNING: if multiple read-lockers want to upgrade, it will deadlock because they |
| 462 | # all will wait until the other read locks go away - and that won't happen. |
| 463 | if not self.is_exclusive: |
| 464 | self.acquire(exclusive=True, remove=SHARED) |
| 465 | |
| 466 | def downgrade(self): |
| 467 | if self.is_exclusive: |