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

java: don't synch on an object and also assign to it

Change-Id: Ie0a098e935e640f10b77d259c96bbd1c604d701e
üst 41f4417b
......@@ -102,14 +102,11 @@ public class TableCellTextBinding
throw new com.sun.star.form.binding.IncompatibleTypesException();
}
// remember the new text
synchronized( m_newCellText )
{
m_newCellText = text;
m_haveNewCellText = true;
}
// and wake up the thread which is waiting for it
synchronized( m_writeSignal )
{
m_newCellText = text;
m_haveNewCellText = true;
m_writeSignal.notify();
}
}
......@@ -142,11 +139,7 @@ public class TableCellTextBinding
synchronized( m_writeSignal )
{
m_writeSignal.wait( 200 );
}
// if there's new text in the control, propagate it to the cell
synchronized ( m_newCellText )
{
if ( m_haveNewCellText )
{
m_cellText.setString( m_newCellText );
......
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