private static void processNewTraceComponents() {
        if (allTraceComponentsLock.tryLock()) {
            try {
                TraceComponent tc = newTracecomponents.poll();
                while (tc != null) {
                    allTraceComponents.add(tc);
                    tc = newTracecomponents.poll();
                }
            } finally {
                allTraceComponentsLock.unlock();
            }
        }
    }
private static void processNewTraceComponents ( ) { if ( allTraceComponentsLock . tryLock ( ) ) { try { TraceComponent tc = newTracecomponents . poll ( ) ; while ( tc != null ) { allTraceComponents . add ( tc ) ; tc = newTracecomponents . poll ( ) ; } } finally { allTraceComponentsLock . unlock ( ) ; } } }
private: If we already have (or can get) the allTraceComponentsLock
process the new trace components