tour: Concurrent tree comparison: Add mutexes and waitGroup.
authorsgf <sgf.dma@gmail.com>
Wed, 11 May 2022 15:04:21 +0000 (18:04 +0300)
committersgf <sgf.dma@gmail.com>
Wed, 11 May 2022 15:04:21 +0000 (18:04 +0300)
commit5b7d618a229aca8011fe39641873e4dac7d6bcfa
tree896afadb298c2742e423a244818b6de5b9052ced
parent717080309b87ec32b7f099e7e459449edc445667
tour: Concurrent tree comparison: Add mutexes and waitGroup.

Add mutexes for syncing prints from go routines walking both trees.
Add wait group for waiting for print from last go routine to complete.
tree/tree.go