Kaydet (Commit) fa59d0c5 authored tarafından Noel Grandin's avatar Noel Grandin

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

Change-Id: Iaeb21e3a5798c817315f619e0c1c57bd0c37f175
üst 7e7014ba
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment