Rename LoggingThread#startLoggingThread method

This commit is contained in:
JeremyStar™ 2024-09-05 00:47:04 +02:00
parent e21ea102c7
commit c9bf6126a0
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
4 changed files with 5 additions and 4 deletions

View file

@ -344,7 +344,7 @@ public final class Engine extends SubsystemClass {
public void startThreads() {
logger.diag("Starting threads");
LoggingThread.startLoggingThread();
LoggingThread.startThread();
}
/**

View file

@ -328,7 +328,7 @@ public final class EngineConfiguration extends Configuration {
// Start logging thread automatically
if (optimizeLogging && Engine.getInstance().getState() == EngineState.RUNNING)
LoggingThread.startLoggingThread();
LoggingThread.startThread();
}
case "optimizeEvents" -> optimizeEvents = parser.getBoolean(group + property);
case "optimizeSubsystemInitialization" -> optimizeSubsystemInitialization = parser.getBoolean(group + property);

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.Nullable;
* @param issuerOrigin Origin of the issuer.
* @param issuerMetadata Metadata about the issuer.
* @param message Message of the log call.
* @see LoggingThread#startLoggingThread()
* @see LoggingThread#startThread()
* @since v1-alpha1
*/
@SuppressWarnings({ "unused" })

View file

@ -103,9 +103,10 @@ public class LoggingThread {
* Starts the logging thread.
*
* @since v1-alpha4
* @throws IllegalStateException if thread reconstruction fails because the thread isn't {@link Thread.State#TERMINATED}, see {@link #reconstructThread()}
* @see #loggingThread
*/
public static void startLoggingThread() {
public static void startThread() {
if (loggingThread == null)
reconstructThread();