Skip to content

Instantly share code, notes, and snippets.

@galderz
Created August 3, 2011 06:42
Show Gist options
  • Select an option

  • Save galderz/1122042 to your computer and use it in GitHub Desktop.

Select an option

Save galderz/1122042 to your computer and use it in GitHub Desktop.
package org.infinispan.util.concurrent.locks;
import org.testng.annotations.Test;
/**
* // TODO: Document this
*
* @author Galder Zamarreño
* @since // TODO
*/
@Test(groups = "functional", testName = "util.concurrent.locks.StripedLockTest")
public class StripedLockTest {
public void test000() {
StripedLock stripedLock = new StripedLock();
String key = "a";
stripedLock.acquireLock(key, false);
stripedLock.acquireLock(key, true);
stripedLock.releaseLock(key);
System.out.println(stripedLock);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment