public void add ( Operation operation ) { synchronized ( operations ) { operations . addLast ( operation ) ; if ( waiting ) sp . unblock ( ) ; } if ( autoStart && operations . size ( ) == 1 && getStatus ( ) == Task . STATUS_NOT_STARTED ) start ( ) ; }
Append an operation .