C# Class CSPspEmu.Hle.HleThread

Inheritance: IDisposable
Show file Open project: soywiz/cspspemu Class Usage Examples

Public Properties

Property Type Description
Attribute PspThreadAttributes
CurrentWaitType WaitType
HandleCallbacks bool
Id int
Info SceKernelThreadInfo
LastCalledHleFunction DelegateInfo
Stack CSPspEmu.Hle.MemoryPartition
WaitDescription String
WaitObject object
WakeUpCallback System.Action
WakeUpList List

Protected Properties

Property Type Description
Coroutine CSharpUtils.Threading.Coroutine
GreenThread CSharpUtils.Threading.GreenThread
YieldCount int

Private Properties

Property Type Description
MainLoop void
StatusUpdated void

Public Methods

Method Description
ChangeWakeUpCount ( int Increment, HleThread WakeupThread, bool HandleCallbacks = false ) : void
Dispose ( ) : void
DumpStack ( TextWriter TextWriter ) : void
HasAllStatus ( Status HasStatus ) : bool
HasAnyStatus ( Status HasStatus ) : bool
HleThread ( InjectContext InjectContext, CpuThreadState CpuThreadState ) : System
ReleaseWaitThread ( ) : void
SetStatus ( Status NewStatus ) : void
SetWaitAndPrepareWakeUp ( WaitType WaitType, String WaitDescription, object WaitObject, Action PrepareCallback, bool HandleCallbacks = false ) : void
Step ( int InstructionCountForYield = 1000000 ) : void
Terminate ( ) : void
ToExtendedString ( ) : string
ToString ( ) : string
WakeUpAndReschedule ( ) : void

Protected Methods

Method Description
SetWait0 ( WaitType WaitType, String WaitDescription, object WaitObject, bool HandleCallbacks ) : void
SetWait1 ( ) : void

Private Methods

Method Description
MainLoop ( ) : void
StatusUpdated ( ) : void

Method Details

ChangeWakeUpCount() public method

public ChangeWakeUpCount ( int Increment, HleThread WakeupThread, bool HandleCallbacks = false ) : void
Increment int
WakeupThread HleThread
HandleCallbacks bool
return void

Dispose() public method

public Dispose ( ) : void
return void

DumpStack() public method

public DumpStack ( TextWriter TextWriter ) : void
TextWriter TextWriter
return void

HasAllStatus() public method

public HasAllStatus ( Status HasStatus ) : bool
HasStatus Status
return bool

HasAnyStatus() public method

public HasAnyStatus ( Status HasStatus ) : bool
HasStatus Status
return bool

HleThread() public method

public HleThread ( InjectContext InjectContext, CpuThreadState CpuThreadState ) : System
InjectContext InjectContext
CpuThreadState CSPspEmu.Core.Cpu.CpuThreadState
return System

ReleaseWaitThread() public method

public ReleaseWaitThread ( ) : void
return void

SetStatus() public method

public SetStatus ( Status NewStatus ) : void
NewStatus Status
return void

SetWait0() protected method

protected SetWait0 ( WaitType WaitType, String WaitDescription, object WaitObject, bool HandleCallbacks ) : void
WaitType WaitType
WaitDescription String
WaitObject object
HandleCallbacks bool
return void

SetWait1() protected method

protected SetWait1 ( ) : void
return void

SetWaitAndPrepareWakeUp() public method

public SetWaitAndPrepareWakeUp ( WaitType WaitType, String WaitDescription, object WaitObject, Action PrepareCallback, bool HandleCallbacks = false ) : void
WaitType WaitType
WaitDescription String
WaitObject object
PrepareCallback Action
HandleCallbacks bool
return void

Step() public method

public Step ( int InstructionCountForYield = 1000000 ) : void
InstructionCountForYield int
return void

Terminate() public method

public Terminate ( ) : void
return void

ToExtendedString() public method

public ToExtendedString ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

WakeUpAndReschedule() public method

public WakeUpAndReschedule ( ) : void
return void

Property Details

Attribute public property

public PspThreadAttributes Attribute
return PspThreadAttributes

Coroutine protected property

protected Coroutine,CSharpUtils.Threading Coroutine
return CSharpUtils.Threading.Coroutine

CurrentWaitType public property

public WaitType CurrentWaitType
return WaitType

GreenThread protected property

protected GreenThread,CSharpUtils.Threading GreenThread
return CSharpUtils.Threading.GreenThread

HandleCallbacks public property

public bool HandleCallbacks
return bool

Id public property

public int Id
return int

Info public property

public SceKernelThreadInfo,CSPspEmu.Hle Info
return SceKernelThreadInfo

LastCalledHleFunction public property

public DelegateInfo,CSPspEmu.Hle LastCalledHleFunction
return DelegateInfo

Stack public property

public MemoryPartition,CSPspEmu.Hle Stack
return CSPspEmu.Hle.MemoryPartition

WaitDescription public property

public String WaitDescription
return String

WaitObject public property

public object WaitObject
return object

WakeUpCallback public property

public Action,System WakeUpCallback
return System.Action

WakeUpList public property

public List WakeUpList
return List

YieldCount protected property

Number of times the thread have been paused.
protected int YieldCount
return int