1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-13 19:57:12 +00:00

Migrate the computer tasks into a separate thread

- Move state management (turnOn, shutdown, etc...) event handling and
   the command queue into a ComputerExecutor

 - This means the computer thread now just handles running "work" on
   computer executors, rather than managing a separate command queue +
   requeuing it.
This commit is contained in:
SquidDev
2019-02-26 10:31:29 +00:00
parent 06e76f9b15
commit 67af7a698b
5 changed files with 724 additions and 522 deletions

View File

@@ -204,16 +204,6 @@ public class ServerComputer extends ServerTerminal implements IComputer, IComput
NetworkHandler.sendToAllPlayers( new ComputerDeletedClientMessage( getInstanceID() ) );
}
public IWritableMount getRootMount()
{
return m_computer.getRootMount();
}
public int assignID()
{
return m_computer.assignID();
}
public void setID( int id )
{
m_computer.setID( id );
@@ -303,7 +293,7 @@ public class ServerComputer extends ServerTerminal implements IComputer, IComput
public void addAPI( ILuaAPI api )
{
m_computer.addAPI( api );
m_computer.addApi( api );
}
@Deprecated