2018-02-04 23:08:20 +00:00
|
|
|
using ChocolArm64;
|
|
|
|
|
2018-02-20 20:09:23 +00:00
|
|
|
namespace Ryujinx.Core.OsHle.Handles
|
2018-02-04 23:08:20 +00:00
|
|
|
{
|
2018-03-19 18:58:46 +00:00
|
|
|
class KThread : KSynchronizationObject
|
2018-02-04 23:08:20 +00:00
|
|
|
{
|
|
|
|
public AThread Thread { get; private set; }
|
|
|
|
|
2018-04-19 02:52:23 +00:00
|
|
|
public int ProcessorId { get; private set; }
|
|
|
|
|
|
|
|
public int Priority { get; set; }
|
|
|
|
public int Handle { get; set; }
|
2018-02-14 02:43:08 +00:00
|
|
|
|
|
|
|
public int ThreadId => Thread.ThreadId;
|
|
|
|
|
2018-03-19 18:58:46 +00:00
|
|
|
public KThread(AThread Thread, int ProcessorId, int Priority)
|
2018-02-04 23:08:20 +00:00
|
|
|
{
|
2018-02-14 02:43:08 +00:00
|
|
|
this.Thread = Thread;
|
|
|
|
this.ProcessorId = ProcessorId;
|
|
|
|
this.Priority = Priority;
|
2018-02-04 23:08:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|