Skip to content

Commit

Permalink
Reorg fields
Browse files Browse the repository at this point in the history
  • Loading branch information
benjchristensen committed Sep 19, 2013
1 parent c2fd36e commit e218050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rxjava-core/src/main/java/rx/operators/ScheduledObserver.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
private final Scheduler scheduler;
private final CompositeSubscription parentSubscription;
private final EventLoop eventLoop = new EventLoop();

private final ConcurrentLinkedQueue<Notification<? extends T>> queue = new ConcurrentLinkedQueue<Notification<? extends T>>();
final AtomicInteger counter = new AtomicInteger();
private final AtomicBoolean started = new AtomicBoolean();

private final ConcurrentLinkedQueue<Notification<? extends T>> queue = new ConcurrentLinkedQueue<Notification<? extends T>>();


public ScheduledObserver(CompositeSubscription s, Observer<? super T> underlying, Scheduler scheduler) {
this.parentSubscription = s;
this.underlying = underlying;
Expand All @@ -57,8 +59,6 @@ public void onNext(final T args) {
enqueue(new Notification<T>(args));
}

final AtomicInteger counter = new AtomicInteger();

private void enqueue(Notification<? extends T> notification) {
// this must happen before synchronization between threads
queue.offer(notification);
Expand Down

0 comments on commit e218050

Please sign in to comment.