Title: Commented out deferredLoader related code in Resource.cs
x) The changes involve commenting out the `deferredLoader` related code in the `Resource.cs` file. x) Specifically, the instantiation of `ImmDefLoad s_deferredLoad`, the creation and start of a new thread for `m_deferredLoader`, and the entire method `deferredLoader()` have been commented out. x) This might be due to debugging or refactoring efforts where these parts are temporarily disabled. Further context is needed to understand why these specific lines were commented out.
This commit is contained in:
parent
09bcc5ee37
commit
738fd19cf3
@ -401,22 +401,25 @@ public class Mgr
|
||||
static object s_loadingLock = new object();
|
||||
|
||||
static ImmutableDictionary<string, AutoResetEvent> s_loading = ImmutableDictionary<string, AutoResetEvent>.Empty;
|
||||
static ImmDefLoad s_deferredLoad = ImmDefLoad.Empty;
|
||||
//static ImmDefLoad s_deferredLoad = ImmDefLoad.Empty;
|
||||
|
||||
|
||||
public Mgr()
|
||||
{
|
||||
log.info( $"Creating Res.Mgr" );
|
||||
|
||||
/*
|
||||
var ts = new ThreadStart( deferredLoader );
|
||||
|
||||
m_deferredLoader = new Thread( ts );
|
||||
*/
|
||||
|
||||
LogGC.RegisterObjectId( s_loadingLock );
|
||||
|
||||
m_deferredLoader.Start();
|
||||
//m_deferredLoader.Start();
|
||||
}
|
||||
|
||||
/*
|
||||
void deferredLoader()
|
||||
{
|
||||
while( true )
|
||||
@ -429,12 +432,13 @@ public class Mgr
|
||||
}
|
||||
}
|
||||
}
|
||||
//*/
|
||||
|
||||
|
||||
|
||||
ImmutableDictionary<Type, LoadHolder> m_loaders = ImmutableDictionary<Type, LoadHolder>.Empty;
|
||||
|
||||
Thread m_deferredLoader;
|
||||
//Thread m_deferredLoader;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user