Revision 9559b088
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/message/EffectMessageSender.java | ||
---|---|---|
49 | 49 |
private static EffectMessageSender mThis=null; |
50 | 50 |
private static volatile boolean mNotify = false; |
51 | 51 |
private static volatile boolean mRunning = false; |
52 |
private static final Object mLock = new Object(); |
|
53 | 52 |
|
54 | 53 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
55 | 54 |
|
... | ... | |
72 | 71 |
} |
73 | 72 |
else |
74 | 73 |
{ |
75 |
synchronized(mLock)
|
|
74 |
synchronized(mThis)
|
|
76 | 75 |
{ |
77 | 76 |
mThis.notify(); |
78 | 77 |
} |
... | ... | |
87 | 86 |
|
88 | 87 |
if( mThis!=null ) |
89 | 88 |
{ |
90 |
synchronized(mLock)
|
|
89 |
synchronized(mThis)
|
|
91 | 90 |
{ |
92 | 91 |
mThis.notify(); |
93 | 92 |
} |
... | ... | |
108 | 107 |
tmp.mListener.effectMessage(tmp.mMessage, tmp.mEffectID, tmp.mObjectID); |
109 | 108 |
} |
110 | 109 |
|
111 |
synchronized(mLock)
|
|
110 |
synchronized(mThis)
|
|
112 | 111 |
{ |
113 | 112 |
if (!mNotify) |
114 | 113 |
{ |
... | ... | |
130 | 129 |
Message msg = mThis.new Message(l,m,effID,objID); |
131 | 130 |
mList.add(msg); |
132 | 131 |
|
133 |
synchronized(mLock)
|
|
132 |
synchronized(mThis)
|
|
134 | 133 |
{ |
135 | 134 |
mNotify = true; |
136 | 135 |
mThis.notify(); |
Also available in: Unified diff
Correct the EffectMessageSender.