| 66 | |
| 67 | # A trivial mutable counter. |
| 68 | class Counter(object): |
| 69 | def __init__(self): |
| 70 | self.value = 0 |
| 71 | def inc(self): |
| 72 | self.value += 1 |
| 73 | def dec(self): |
| 74 | self.value -= 1 |
| 75 | def get(self): |
| 76 | return self.value |
| 77 | |
| 78 | class TestThread(threading.Thread): |
| 79 | def __init__(self, name, testcase, sema, mutex, nrunning): |
no outgoing calls
searching dependent graphs…