Rename lock coffin to lock grave
This commit is contained in:
parent
3275602da0
commit
21dae2357b
21 changed files with 28 additions and 28 deletions
|
|
@ -17,11 +17,11 @@ public interface BãßBȍőn<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> {
|
|||
private static final ReadWriteLock FUNERAL = new ReentrantReadWriteLock();
|
||||
|
||||
@SafeVarargs
|
||||
public static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void INIT(BãßBȍőn<T,K> boon, Consumer<BãßBȍőnCoffinOpenʸᴰ<K>>...coffinFillers) {
|
||||
public static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void 仙ᴵᴺᴵᵀ(BãßBȍőn<T,K> boon, Consumer<BãßBȍőnCoffinOpenʸᴰ<K>>...coffinFillers) {
|
||||
BãßBȍőnLoad殭屍.CAST_BONE_MAGIC(boon, coffinFillers);
|
||||
}
|
||||
|
||||
public static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void LOCK_COFFIN(BãßBȍőn<T,K> boon) {
|
||||
public static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void 鎖ᴳᴿᴬⱽᴱ(BãßBȍőn<T,K> boon) {
|
||||
BãßBȍőnCoffinʸᴰ<K> coffin = (BãßBȍőnCoffinʸᴰ<K>)boon.toBBC();
|
||||
if (!(coffin instanceof BãßBȍőnCoffinOpenʸᴰ)) {
|
||||
return; // already closed
|
||||
|
|
@ -29,8 +29,8 @@ public interface BãßBȍőn<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> {
|
|||
Lock graveDigger = Ꝑŕḯṿª₮ḕ.FUNERAL.writeLock();
|
||||
graveDigger.lock();
|
||||
try {
|
||||
GRAVE_YARD.remove(boon.BȍőnCoffinHeadStoneʸᴰ());
|
||||
GRAVE_YARD.put(boon.BȍőnCoffinHeadStoneʸᴰ(), ((BãßBȍőnCoffinOpenʸᴰ<K>)coffin).LOCK_COFFIN());
|
||||
GRAVE_YARD.remove(boon.toBBCHeadStoneʸᴰ());
|
||||
GRAVE_YARD.put(boon.toBBCHeadStoneʸᴰ(), ((BãßBȍőnCoffinOpenʸᴰ<K>)coffin).LOCK_COFFIN());
|
||||
} finally {
|
||||
graveDigger.unlock();
|
||||
}
|
||||
|
|
@ -38,7 +38,7 @@ public interface BãßBȍőn<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> {
|
|||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
default T BȍőnCoffinHeadStoneʸᴰ() {
|
||||
default T toBBCHeadStoneʸᴰ() {
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ public interface BãßBȍőn<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> {
|
|||
Lock bibleReader = Ꝑŕḯṿª₮ḕ.FUNERAL.readLock(); // Can't force enum only, thus no jvm safety
|
||||
bibleReader.lock();
|
||||
try {
|
||||
zombieCoffin = (BãßBȍőnCoffinʸᴰ<K>) Ꝑŕḯṿª₮ḕ.GRAVE_YARD.get(BȍőnCoffinHeadStoneʸᴰ());
|
||||
zombieCoffin = (BãßBȍőnCoffinʸᴰ<K>) Ꝑŕḯṿª₮ḕ.GRAVE_YARD.get(toBBCHeadStoneʸᴰ());
|
||||
} finally {
|
||||
bibleReader.unlock();
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ public interface BãßBȍőn<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> {
|
|||
shemiraWriter.lock();
|
||||
try {
|
||||
zombieCoffin = BãßBȍőnCoffinOpenʸᴰ.newInstance();
|
||||
Ꝑŕḯṿª₮ḕ.GRAVE_YARD.put(BȍőnCoffinHeadStoneʸᴰ(), zombieCoffin);
|
||||
Ꝑŕḯṿª₮ḕ.GRAVE_YARD.put(toBBCHeadStoneʸᴰ(), zombieCoffin);
|
||||
} finally {
|
||||
shemiraWriter.unlock();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue