]> git.meshlink.io Git - meshlink/commitdiff
Use condition variables to wait for threads to finish initializing.
authorGuus Sliepen <guus@meshlink.io>
Sun, 4 Aug 2019 20:22:10 +0000 (22:22 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 4 Aug 2019 20:22:10 +0000 (22:22 +0200)
To prevent a race condition when calling meshlink_stop() right after
meshlink_start(), we need to wait for the MeshLink and Catta threads to
finish initializing before we can return from meshlink_start().


No differences found