public boolean scheduleExecutorTask ( Runnable task ) { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; synchronized ( _executorLock ) { _executorTaskCount ++ ; if ( _executorTaskCount <= _executorTaskMax || _executorTaskMax < 0 ) { boolean isPriority = false ; boolean isQueue = true ; boolean isWake = true ; return scheduleImpl ( task , loader , MAX_EXPIRE , isPriority , isQueue , isWake ) ; } else { ExecutorQueueItem item = new ExecutorQueueItem ( task , loader ) ; if ( _executorQueueTail != null ) _executorQueueTail . _next = item ; else _executorQueueHead = item ; _executorQueueTail = item ; return false ; } } }
Schedules an executor task .