]> git.tdb.fi Git - r2c2.git/commit
Eliminate a possible race condition in thread termination
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 14:19:01 +0000 (16:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 15:56:37 +0000 (17:56 +0200)
commitee92bee98fa084645b17f65cebe4eabf70e4dee9
tree7083e6a5c67e3ee970d4bae394c3dc891a4f84db
parent5c3d55f48318bb16865012c13619990004747090
Eliminate a possible race condition in thread termination

In the unlikely event that the thread doesn't terminate fast enough after
setting the goal pointer, deleting it would send it a kill signal.
Remove this possibility by explicitly jouning the thread.
source/libr2c2/trainrouteplanner.cpp