Skip to content

Commit

Permalink
potential speedup of JAEventQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
laforge49 committed Mar 1, 2012
1 parent 1db8f47 commit b487e53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/agilewiki/jactor/events/JAEventQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public JAEventQueue(ThreadManager threadManager, boolean autonomous) {
this.autonomous = autonomous;
}

/**
* Take control.
*
* @param eventQueue The queue wanting to take control.
* @return True if control was taken.
*/
private boolean commandeer(EventQueue<E> eventQueue) {
if (atomicControl.get() != null)
return false;
Expand Down

0 comments on commit b487e53

Please sign in to comment.