mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-27 17:40:50 +01:00
3615a70cae
This reverts commit 85dbb9559a
.
34 lines
804 B
C#
34 lines
804 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel
|
|
{
|
|
class KSynchronizationObject : KAutoObject
|
|
{
|
|
public LinkedList<KThread> WaitingThreads;
|
|
|
|
public KSynchronizationObject(Horizon System) : base(System)
|
|
{
|
|
WaitingThreads = new LinkedList<KThread>();
|
|
}
|
|
|
|
public LinkedListNode<KThread> AddWaitingThread(KThread Thread)
|
|
{
|
|
return WaitingThreads.AddLast(Thread);
|
|
}
|
|
|
|
public void RemoveWaitingThread(LinkedListNode<KThread> Node)
|
|
{
|
|
WaitingThreads.Remove(Node);
|
|
}
|
|
|
|
public virtual void Signal()
|
|
{
|
|
System.Synchronization.SignalObject(this);
|
|
}
|
|
|
|
public virtual bool IsSignaled()
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
} |