Search in sources :

Example 1 with AEMonitor

use of com.biglybt.core.util.AEMonitor in project BiglyBT by BiglySoftware.

the class VirtualChannelSelector method initSafeMode.

private void initSafeMode() {
    if (Logger.isEnabled()) {
        Logger.log(new LogEvent(LOGID, "***************** SAFE SOCKET SELECTOR MODE ENABLED *****************"));
    }
    selector_impl = null;
    selectors = new HashMap<>();
    selectors_mon = new AEMonitor("VirtualChannelSelector:FM");
    selectors.put(new VirtualChannelSelectorImpl(this, op, pause, randomise_keys), new ArrayList<AbstractSelectableChannel>());
    selectors_keyset_cow = new HashSet<>(selectors.keySet());
}
Also used : VirtualChannelSelectorImpl(com.biglybt.core.networkmanager.impl.tcp.VirtualChannelSelectorImpl) LogEvent(com.biglybt.core.logging.LogEvent) AEMonitor(com.biglybt.core.util.AEMonitor) AbstractSelectableChannel(java.nio.channels.spi.AbstractSelectableChannel)

Aggregations

LogEvent (com.biglybt.core.logging.LogEvent)1 VirtualChannelSelectorImpl (com.biglybt.core.networkmanager.impl.tcp.VirtualChannelSelectorImpl)1 AEMonitor (com.biglybt.core.util.AEMonitor)1 AbstractSelectableChannel (java.nio.channels.spi.AbstractSelectableChannel)1