forked from wormzjl/ModularMachinery
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee1f8b3
commit 683032f
Showing
7 changed files
with
78 additions
and
81 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
src/main/java/github/kasuminova/mmce/common/concurrent/Locks.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/main/java/github/kasuminova/mmce/common/concurrent/Sync.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package github.kasuminova.mmce.common.concurrent; | ||
|
||
public class Sync { | ||
/** | ||
* <p>全局同步方法,用来进行方块更新、同步等非线程安全操作。</p> | ||
* <p>Global synchronization method.</p> | ||
* <p>For non-thread-safe operations such as block update and synchronization.</p> | ||
*/ | ||
public static synchronized void doSyncAction(Action action) { | ||
action.doAction(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters