mirror of
https://github.com/stride3d/stride.git
synced 2026-10-12 02:23:23 +00:00
* [Core.Mathematics] Modernize code * [Core.Mathematics] Add tests to Stride.Tests.Simple * [Core] Cleanup some code * [Core.CompilerServices] Cleanup some code * [Core.CompilerServices] Add tests to Stride.Tests.Simple * [Core.IO] Modernize code * [Core.MicroThreading] Modernize code * [Core.Serialization] Modernize code * [Core.AssemblyProcessor.Tests] Modernize code * [Core.CompilerServices.Tests] Modernize code * [Core.Mathematics.Tests] Modernize code * [Core.Tests] Modernize code * [Core.Translation] Modernize code * [Core.Reflection] Modernize code * Fixes build of Stride.VisualStudio.sln * [Core.Yaml.Tests] Modernize code * [Core.Design] Modernize code * [Core.Design.Tests] Modernize code * [Core.Mathematics] More annotations * Fix build of projects that import code from Core.Design Especially those targeting .NET Framework
38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
|
|
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
|
|
|
|
namespace Stride.Core.MicroThreading;
|
|
|
|
/// <summary>
|
|
/// Provides data for the <see cref="Scheduler.MicroThreadStarted"/>, <see cref="Scheduler.MicroThreadEnded"/>, <see cref="Scheduler.MicroThreadCallbackStart"/> and <see cref="Scheduler.MicroThreadCallbackEnd"/> events.
|
|
/// </summary>
|
|
public class SchedulerThreadEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Gets the <see cref="MicroThread"/> this event concerns.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The micro thread.
|
|
/// </value>
|
|
public MicroThread MicroThread { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="System.Threading.Thread.ManagedThreadId"/> active when this event happened.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The managed thread identifier.
|
|
/// </value>
|
|
public int ThreadId { get; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SchedulerThreadEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="microThread">The micro thread.</param>
|
|
/// <param name="threadId">The managed thread identifier.</param>
|
|
public SchedulerThreadEventArgs(MicroThread microThread, int threadId)
|
|
{
|
|
MicroThread = microThread;
|
|
ThreadId = threadId;
|
|
}
|
|
}
|