(fiberId: FiberId.FiberId, count: number)
| 119 | * number of read locks. |
| 120 | */ |
| 121 | const makeReadLock = (fiberId: FiberId.FiberId, count: number): ReadLock => { |
| 122 | if (count <= 0) { |
| 123 | return emptyReadLock |
| 124 | } |
| 125 | return new ReadLock(HashMap.make([fiberId, count])) |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Determines if there is no other holder of read locks aside from the |
no test coverage detected
searching dependent graphs…