Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PetitTrain(Thread):
- def __init__(self, fin, fifo):
- super().__init__()
- self._fin = fin
- self._fifo = fifo
- def run(self):
- # global passagers
- self._fin = False
- while not self._fin:
- SignalDepart.acquire()
- ..... # attachez-vous ! Le trajet commence
- ....
- # pause avant le groupe suivant
- sleep(1) # un peu de repos
- def circuit(self):
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement