cid#1326347 Check of thread-shared field evades lock acquisition

Change-Id: Iaeb21e3a5798c817315f619e0c1c57bd0c37f175
This commit is contained in:
Noel Grandin 2015-10-14 09:45:53 +02:00
parent 7e7014ba13
commit fa59d0c587

View file

@ -79,11 +79,11 @@ public class CallWatchThread extends Thread
{
dbgPrint( "CallWatchThread(" + this + ".run(" + aTag + ") ***** STARTED *****" );
long n = 0;
while ( aWatchedThread != null )
synchronized(this)
{
dbgPrint( "CallWatchThread(" + this + ").run(" + aTag + ") running #" + ++n );
synchronized(this)
while ( aWatchedThread != null )
{
dbgPrint( "CallWatchThread(" + this + ").run(" + aTag + ") running #" + ++n );
bAlive = false;
try
{