diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-14 09:45:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-14 09:55:19 +0200 |
commit | fa59d0c58709a3620dabdd19a7ea8b85c356d2cb (patch) | |
tree | fa406b30be55ac5cc331b32b15dd6018b8c04619 /bean | |
parent | 7e7014ba139dbcb192b21fc1a28178ef35e1fdc4 (diff) |
cid#1326347 Check of thread-shared field evades lock acquisition
Change-Id: Iaeb21e3a5798c817315f619e0c1c57bd0c37f175
Diffstat (limited to 'bean')
-rw-r--r-- | bean/com/sun/star/comp/beans/CallWatchThread.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bean/com/sun/star/comp/beans/CallWatchThread.java b/bean/com/sun/star/comp/beans/CallWatchThread.java index 2f99adc27030..f03278b6b696 100644 --- a/bean/com/sun/star/comp/beans/CallWatchThread.java +++ b/bean/com/sun/star/comp/beans/CallWatchThread.java @@ -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 { |