Code example for ConcurrentLinkedQueue

Methods: size

0
						y2 = p.y;
						Runnable runnable = new Runnable() {
							@Override 
							public void run() { 
								Interpolator ip = null;
								if (pendingList.size() == 1) {
									ip = interpolator;
								} 
 
								final int mx1 = x1, mx2 = x2, my1 = y1, my2 = y2;
								animateBlob(mx1, my1, mx2, my2, ip);
							} 
						}; 
 
						mHandler.post(runnable);
						try { 
							// Let the animation get completed :: keeping +50ms 
							// time buffer 
							Thread.sleep(ANIMATION_DURATION + 50);
						} catch (Exception e) {
						}