mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 10:20:28 +00:00
A couple of minor cleanups on the last commit
- Remove a redundant logger - Provide a getter for the ComputerCraft thread group. This allows us to monitor child threads within prometheus. - Replace a deprecated call with a fastutils alternative.
This commit is contained in:
parent
0829506176
commit
8ae65d1bdd
@ -129,7 +129,6 @@ public class CobaltLuaMachine implements ILuaMachine
|
||||
Tracking.addValue( m_computer, TrackingField.COROUTINES_DISPOSED, 1 );
|
||||
}
|
||||
} );
|
||||
ComputerCraft.log.info( "Thread pool: " + coroutines );
|
||||
} )
|
||||
.build();
|
||||
|
||||
|
@ -106,7 +106,7 @@ public class ComputerTracker
|
||||
|
||||
synchronized( fields )
|
||||
{
|
||||
return fields.get( field );
|
||||
return fields.getLong( field );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,16 @@ public final class ThreadUtils
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the base thread group, that all off-thread ComputerCraft activities are run on.
|
||||
*
|
||||
* @return The ComputerCraft group.
|
||||
*/
|
||||
public static ThreadGroup group()
|
||||
{
|
||||
return baseGroup;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a group under ComputerCraft's shared group
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user