mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 01:29:13 +00:00
Provide a local (semaphore based) sync context and use it as the default (#480)
* Provide a local (semaphore based) sync context and use it as the default * Use a ReentrantLock * Update daemon/src/main/java/org/mvndaemon/mvnd/sync/MvndSyncContextFactory.java Co-authored-by: Peter Palaga <ppalaga@redhat.com> * Improve lock acquisition Co-authored-by: Peter Palaga <ppalaga@redhat.com>
This commit is contained in:
@@ -257,7 +257,7 @@ public enum Environment {
|
||||
/**
|
||||
* The SyncContextFactory to use (can be either 'noop' or 'ipc' for a server-wide factory).
|
||||
*/
|
||||
MVND_SYNC_CONTEXT_FACTORY("mvnd.syncContextFactory", null, "noop", OptionType.BOOLEAN, Flags.OPTIONAL);
|
||||
MVND_SYNC_CONTEXT_FACTORY("mvnd.syncContextFactory", null, "local", OptionType.BOOLEAN, Flags.OPTIONAL);
|
||||
|
||||
static Properties properties;
|
||||
|
||||
|
Reference in New Issue
Block a user