|
using System;
using Nelibur.Sword.Core;
using Nelibur.Sword.Threading.ThreadPools.TaskQueueControllers;
namespace Nelibur.Sword.Threading.ThreadPools.Configs
{
/// <summary>
/// ThreadPool config.
/// </summary>
public interface IThreadPoolConfig : IFluent
{
/// <summary>
/// MaxThreads per processor.
/// </summary>
/// <remarks>Default value is 5.</remarks>
int MaxThreads { get; set; }
/// <summary>
/// MinThreads per processor.
/// </summary>
/// <remarks>Default value is 1.</remarks>
int MinThreads { get; set; }
/// <summary>
/// Represents threading capacity
/// </summary>
/// <remarks> Default value is PerProcessor.</remarks>
MultiThreadingCapacity MultiThreadingCapacity { get; set; }
/// <summary>
/// Thread pool name.
/// </summary>
/// <remarks>Default value is TinyThreadPool.</remarks>
string Name { get; set; }
/// <summary>
/// Controls access to the task queue.
/// </summary>
/// <remarks>
/// Default value is <see cref="DefaultTaskQueueController" />.
/// </remarks>
ITaskQueueController TaskQueueController { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
B.Sc. in Computer Science.