static A syncPopFirst(L l) { if (empty(l)) null; synchronized(l) { A a = first(l); l.remove(0); ret a; } }