Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SchedulerEventArgs.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 
8 namespace SiliconStudio.Core.MicroThreading
9 {
10  /// <summary>
11  /// Provides data for the <see cref="Scheduler.MicroThreadStarted"/>, <see cref="Scheduler.MicroThreadEnded"/>, <see cref="Scheduler.MicroThreadCallbackStart"/> and <see cref="Scheduler.MicroThreadCallbackEnd"/> events.
12  /// </summary>
14  {
15  /// <summary>
16  /// Gets or sets the <see cref="MicroThread"/> this event concerns.
17  /// </summary>
18  /// <value>
19  /// The micro thread.
20  /// </value>
21  public MicroThread MicroThread { get; private set; }
22 
23  /// <summary>
24  /// Gets or sets the <see cref="System.Threading.Thread.ManagedThreadId"/> active when this event happened.
25  /// </summary>
26  /// <value>
27  /// The managed thread identifier.
28  /// </value>
29  public int ThreadId { get; private set; }
30 
31  /// <summary>
32  /// Initializes a new instance of the <see cref="SchedulerThreadEventArgs"/> class.
33  /// </summary>
34  /// <param name="microThread">The micro thread.</param>
35  /// <param name="threadId">The managed thread identifier.</param>
36  public SchedulerThreadEventArgs(MicroThread microThread, int threadId)
37  {
38  MicroThread = microThread;
39  ThreadId = threadId;
40  }
41  }
42 }
Represents an execution context managed by a Scheduler, that can cooperatively yield execution to ano...
Definition: MicroThread.cs:16
Provides data for the Scheduler.MicroThreadStarted, Scheduler.MicroThreadEnded, Scheduler.MicroThreadCallbackStart and Scheduler.MicroThreadCallbackEnd events.
SchedulerThreadEventArgs(MicroThread microThread, int threadId)
Initializes a new instance of the SchedulerThreadEventArgs class.