releases a reference to a shared executor service , decrementing the reference count . if the reference count falls to zero , the executor service is shut down . concode_field_sep int DEFAULT_POOL_SIZE concode_elem_sep Object _lock concode_elem_sep int NUM_CPUS concode_elem_sep ExecutorService _pool concode_elem_sep int _refCount concode_elem_sep ReferenceCountingExecutorService _instance concode_elem_sep ThreadFactory _threadFactory concode_elem_sep int _poolSize concode_elem_sep boolean _useBiasedPool concode_elem_sep int MINIMUM_POOL_SIZE concode_field_sep int getReferenceCount concode_elem_sep ExecutorService getPool concode_elem_sep void setThreadFactory concode_elem_sep ThreadFactory getThreadFactory concode_elem_sep ReferenceCountingExecutorService getInstance concode_elem_sep ExecutorService acquireExecutorService
void function ( ) { synchronized ( _lock ) { if ( -- _refCount == 0 ) { _pool . shutdownNow ( ) ; } } }