public static NonBlockingSemaphore addSemaphore (String name, int maxResources) { NonBlockingSemaphore sem = FACTORY.createSemaphore(name, maxResources); REPO.put(name, sem); return sem; }
public static NonBlockingSemaphore addSemaphore (String name, int maxResources) { NonBlockingSemaphore sem = FACTORY.createSemaphore(name, maxResources); REPO.put(name, sem); return sem; }
public static NonBlockingSemaphore addSemaphore (String name, int maxResources) { NonBlockingSemaphore sem = FACTORY.createSemaphore(name, maxResources); REPO.put(name, sem); return sem; }