Revision ccd98f1c
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/main/DistortedObject.java | ||
---|---|---|
210 | 210 |
|
211 | 211 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
212 | 212 |
|
213 |
DistortedObject(int create, int type)
|
|
213 |
DistortedObject(int type) |
|
214 | 214 |
{ |
215 | 215 |
mID = type==TYPE_SYST ? --mNextSystemID : ++mNextClientID; |
216 | 216 |
mType= type; |
217 |
|
|
218 |
if( create!=DONT_CREATE ) |
|
219 |
{ |
|
220 |
synchronized(mToDoLock) |
|
221 |
{ |
|
222 |
mToDoMap.put(mID, new Job(this,JOB_CREATE) ); |
|
223 |
mToDo = true; |
|
224 |
} |
|
225 |
} |
|
226 | 217 |
} |
227 | 218 |
|
228 | 219 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Correct a bug in DistortedBuffer: we only mark it for creation when we actually have all the data ready, otherwise it can happen that create(0 is called before setData() !