mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Better documentation for import scheduler singleton
This commit is contained in:
parent
12aa264657
commit
f7a699e4a2
@ -630,7 +630,15 @@ namespace osu.Game.Database
|
||||
|
||||
public abstract class ArchiveModelManager
|
||||
{
|
||||
// allow sharing static across all generic types
|
||||
protected static readonly ThreadedTaskScheduler IMPORT_SCHEDULER = new ThreadedTaskScheduler(1);
|
||||
private const int import_queue_request_concurrency = 1;
|
||||
|
||||
/// <summary>
|
||||
/// A singleton scheduler shared by all <see cref="ArchiveModelManager{TModel,TFileModel}"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This scheduler generally performs IO and CPU intensive work so concurrency is limited harshly.
|
||||
/// It is mainly being used as a queue mechanism for large imports.
|
||||
/// </remarks>
|
||||
protected static readonly ThreadedTaskScheduler IMPORT_SCHEDULER = new ThreadedTaskScheduler(import_queue_request_concurrency);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user