C# Class CSPspEmu.Hle.Modules.threadman.ThreadManForUser

Inheritance: HleModuleHost
显示文件 Open project: soywiz/cspspemu Class Usage Examples

Public Methods

Method Description
_sceKernelStartThread ( CpuThreadState CpuThreadState, int ThreadId, int UserDataLength, uint UserDataPointer ) : void
_sceKernelWaitEventFlagCB ( HleEventFlag EventFlag, uint Bits, EventFlagWaitTypeSet Wait, uint OutBits, uint Timeout, bool HandleCallbacks ) : int

Wait for an event flag for a given bit pattern with callback.

Private Methods

Method Description
GetSemaphoreById ( SemaphoreId SemaphoreId ) : HleSemaphore
GetThreadById ( int ThreadId ) : HleThread
_hle_sceKernelExitDeleteThread ( CpuThreadState CpuThreadState ) : int
_sceKernelDelayThreadCB ( uint DelayInMicroseconds, bool HandleCallbacks ) : int
_sceKernelSleepThreadCB ( CpuThreadState CpuThreadState, bool HandleCallbacks ) : int

_sceKernelWaitSemaCB ( SemaphoreId SemaphoreId, int Signal, uint Timeout, bool HandleCallbacks ) : int
_sceKernelWaitThreadEndCB ( int ThreadId, uint Timeout, bool HandleCallbacks ) : int

sceKernelAllocateFpl ( FixedPool FixedPool, PspPointer DataPointer, uint Timeout ) : int
sceKernelAllocateFplCB ( FixedPool FixedPool, PspPointer DataPointer, uint Timeout ) : int
sceKernelAllocateVpl ( CpuThreadState CpuThreadState, VariablePool VariablePool, int Size, PspPointer AddressPointer, uint Timeout ) : int
sceKernelAllocateVplCB ( CpuThreadState CpuThreadState, VariablePool VariablePool, int Size, PspPointer AddressPointer, uint Timeout ) : int
sceKernelCancelAlarm ( int alarmid ) : int
sceKernelCancelEventFlag ( HleEventFlag EventFlag, int NewPattern, int NumWaitThread ) : int
sceKernelCancelMsgPipe ( MsgPipe MsgPipe, int psend, int precv ) : int
sceKernelCancelSema ( ) : void
sceKernelCancelVTimerHandler ( VirtualTimer VirtualTimer ) : int
sceKernelCancelWakeupThread ( int ThreadId ) : int
sceKernelChangeCurrentThreadAttr ( PspThreadAttributes RemoveAttributes, PspThreadAttributes AddAttributes ) : int
sceKernelChangeThreadPriority ( CpuThreadState CpuThreadState, int ThreadId, int Priority ) : int
sceKernelCheckCallback ( CpuThreadState CpuThreadState ) : int
sceKernelClearEventFlag ( HleEventFlag EventFlag, uint BitsToClear ) : int
sceKernelCreateCallback ( string Name, SceKernelCallbackFunction Function, uint Argument ) : int
sceKernelCreateEventFlag ( string Name, HleEventFlag Attributes, uint BitPattern, SceKernelEventFlagOptParam OptionsPtr ) : HleEventFlag
sceKernelCreateFpl ( string Name, MemoryPartitions PartitionId, FplAttributes Attributes, int BlockSize, int NumberOfBlocks, FplOptionsStruct Options ) : FixedPool
sceKernelCreateLwMutex ( SceLwMutexWorkarea WorkAreaPointer, string Name, ThreadManForUser Attributes, int InitialCount, int OptionAddress ) : int
sceKernelCreateMbx ( string Name, MbxAttributesEnum Attributes, SceKernelMbxOptParam Options ) : MessageBox
sceKernelCreateMsgPipe ( string Name, MemoryPartitions PartitionId, MsgPipeAttributes Attributes, int Size, void Options ) : MsgPipe
sceKernelCreateMutex ( CpuThreadState CpuThreadState, string Name, MutexAttributesEnum Attributes, uint Options ) : PspMutex
sceKernelCreateSema ( string Name, SemaphoreAttribute SemaphoreAttribute, int InitialCount, int MaximumCount, SceKernelSemaOptParam Options ) : SemaphoreId
sceKernelCreateThread ( CpuThreadState CpuThreadState, string Name, uint EntryPoint, int InitPriority, int StackSize, PspThreadAttributes Attribute, SceKernelThreadOptParam Option ) : uint
sceKernelCreateVTimer ( string Name, SceKernelVTimerOptParam SceKernelVTimerOptParam ) : VirtualTimer
sceKernelCreateVpl ( string Name, MemoryPartitions PartitionId, VplAttributeEnum Attribute, int Size, void Options ) : VariablePool
sceKernelDelaySysClockThread ( uint sysclocksPointer ) : int
sceKernelDelayThread ( uint DelayInMicroseconds ) : int
sceKernelDelayThreadCB ( uint DelayInMicroseconds ) : int
sceKernelDeleteCallback ( int CallbackId ) : int
sceKernelDeleteEventFlag ( HleEventFlag EventFlag ) : int
sceKernelDeleteFpl ( FixedPool FixedPool ) : int
sceKernelDeleteLwMutex ( SceLwMutexWorkarea WorkAreaPointer ) : int
sceKernelDeleteMbx ( MessageBox MessageBox ) : int
sceKernelDeleteMsgPipe ( MsgPipe MsgPipe ) : int
sceKernelDeleteMutex ( CpuThreadState CpuThreadState, PspMutex Mutex ) : int
sceKernelDeleteSema ( CpuThreadState CpuThreadState, SemaphoreId SemaphoreId ) : int
sceKernelDeleteThread ( int ThreadId ) : int
sceKernelDeleteVTimer ( VirtualTimer VirtualTimer ) : int
sceKernelDeleteVpl ( VariablePool VariablePool ) : int
sceKernelExitDeleteThread ( int ExitStatus ) : int
sceKernelExitThread ( int ExitStatus ) : int
sceKernelFreeFpl ( FixedPool FixedPool, PspPointer DataPointer ) : int
sceKernelFreeVpl ( CpuThreadState CpuThreadState, VariablePool VariablePool, PspPointer Data ) : int
sceKernelGetCallbackCount ( int cb ) : int
sceKernelGetSystemTime ( SceKernelSysClock Time ) : int
sceKernelGetSystemTimeLow ( ) : uint
sceKernelGetSystemTimeWide ( ) : long
sceKernelGetThreadCurrentPriority ( ) : int
sceKernelGetThreadExitStatus ( int ThreadId ) : int
sceKernelGetThreadId ( ) : int
sceKernelGetThreadStackFreeSize ( int ThreadId ) : int
sceKernelGetThreadmanIdList ( SceKernelIdListType Type, int List, int ListMax, int OutListCount ) : int
sceKernelGetVTimerTime ( VirtualTimer VirtualTimer, SceKernelSysClock Time ) : int
sceKernelGetVTimerTimeWide ( VirtualTimer VirtualTimer ) : long
sceKernelLockMutex ( CpuThreadState CpuThreadState, PspMutex Mutex, int Count, uint Timeout ) : int
sceKernelLockMutexCB ( CpuThreadState CpuThreadState, PspMutex Mutex, int Count, uint Timeout ) : int
sceKernelNotifyCallback ( int CallbackId, int Argument2 ) : int
sceKernelPollEventFlag ( [ EventFlag, uint Bits, EventFlagWaitTypeSet WaitType, uint OutBits ) : int
sceKernelPollMbx ( MessageBox MessageBox, PspPointer PointerToMessage ) : int
sceKernelPollSema ( CpuThreadState CpuThreadState, SemaphoreId SemaphoreId, int Signal ) : int
sceKernelReceiveMbx ( MessageBox MessageBox, PspPointer PointerToMessage, uint Timeout ) : int
sceKernelReceiveMsgPipe ( MsgPipe MsgPipe, byte Message, int Size, int WaitMode, int ResultSizeAddr, uint Timeout ) : int
sceKernelReferEventFlagStatus ( HleEventFlag EventFlag, EventFlagInfo &Info ) : int
sceKernelReferGlobalProfiler ( ) : int
sceKernelReferMsgPipeStatus ( MsgPipe MsgPipe, void SceKernelMppInfo ) : int
sceKernelReferSemaStatus ( SemaphoreId SemaphoreId, SceKernelSemaInfo SceKernelSemaInfo ) : int
sceKernelReferSystemStatus ( SceKernelSystemStatus &SceKernelSystemStatus ) : int
sceKernelReferThreadProfiler ( ) : long
sceKernelReferThreadRunStatus ( ) : int
sceKernelReferThreadStatus ( int ThreadId, SceKernelThreadInfo &SceKernelThreadInfo ) : int
sceKernelReferVplStatus ( VariablePool VariablePool, SceKernelVplInfo Info ) : int
sceKernelReleaseWaitThread ( int ThreadId ) : int
sceKernelResumeDispatchThread ( HleThreadManager State ) : int
sceKernelResumeThread ( int ThreadId ) : int
sceKernelRotateThreadReadyQueue ( CpuThreadState CpuThreadState, int priority ) : int
sceKernelSendMbx ( MessageBox MessageBox, PspPointer Message ) : int
sceKernelSendMsgPipe ( MsgPipe MsgPipe, byte Message, int Size, int WaitMode, int ResultSizeAddr, uint Timeout ) : int
sceKernelSetAlarm ( int clock, uint handler, uint common ) : int
sceKernelSetEventFlag ( HleEventFlag EventFlag, uint BitPattern ) : int
sceKernelSetVTimerHandler ( VirtualTimer VirtualTimer, SceKernelSysClock Time, PspPointer HandlerCallback, PspPointer HandlerArgument ) : int
sceKernelSetVTimerHandlerWide ( VirtualTimer VirtualTimer, long Time, PspPointer HandlerCallback, PspPointer HandlerArgument ) : int
sceKernelSetVTimerTimeWide ( VirtualTimer VirtualTimer, long Time ) : int
sceKernelSignalSema ( CpuThreadState CpuThreadState, SemaphoreId SemaphoreId, int Signal ) : int
sceKernelSleepThread ( CpuThreadState CpuThreadState ) : int
sceKernelSleepThreadCB ( CpuThreadState CpuThreadState ) : int
sceKernelStartThread ( CpuThreadState CpuThreadState, int ThreadId, int UserDataLength, uint UserDataPointer ) : int
sceKernelStartVTimer ( VirtualTimer VirtualTimer ) : int
sceKernelStopVTimer ( VirtualTimer VirtualTimer ) : int
sceKernelSuspendDispatchThread ( ) : HleThreadManager.SCE_KERNEL_DISPATCHTHREAD_STATE
sceKernelSuspendThread ( int ThreadId ) : int
sceKernelSysClock2USec ( SceKernelSysClock Clock, uint Low, uint High ) : int
sceKernelSysClock2USecWide ( long Clock, uint Low, uint High ) : int
sceKernelTerminateDeleteThread ( int ThreadId ) : int
sceKernelTerminateThread ( int ThreadId ) : uint
sceKernelTryAllocateFpl ( FixedPool FixedPool, PspPointer DataPointer ) : int
sceKernelTryAllocateVpl ( CpuThreadState CpuThreadState, VariablePool VariablePool, int Size, PspPointer AddressPointer ) : int
sceKernelTryLockMutex ( CpuThreadState CpuThreadState, PspMutex Mutex, int Count ) : int
sceKernelTryReceiveMsgPipe ( MsgPipe MsgPipe, byte Message, int Size, int WaitMode, int ResultSizeAddr ) : int
sceKernelTrySendMsgPipe ( MsgPipe MsgPipe, byte Message, int Size, int WaitMode, int ResultSizeAddr ) : int
sceKernelUSec2SysClock ( uint MicroSeconds, SceKernelSysClock Clock ) : int
sceKernelUSec2SysClockWide ( uint MicroSeconds ) : long
sceKernelUnlockMutex ( CpuThreadState CpuThreadState, PspMutex Mutex, int Count ) : int
sceKernelWaitEventFlag ( HleEventFlag EventFlag, uint Bits, EventFlagWaitTypeSet WaitType, uint OutBits, uint Timeout ) : int
sceKernelWaitEventFlagCB ( HleEventFlag EventFlag, uint Bits, EventFlagWaitTypeSet WaitType, uint OutBits, uint Timeout ) : int
sceKernelWaitSema ( SemaphoreId SemaphoreId, int Signal, uint Timeout ) : int
sceKernelWaitSemaCB ( SemaphoreId SemaphoreId, int Signal, uint Timeout ) : int
sceKernelWaitThreadEnd ( int ThreadId, uint Timeout ) : int
sceKernelWaitThreadEndCB ( int ThreadId, uint Timeout ) : int
sceKernelWakeupThread ( int ThreadId ) : int

Method Details

_sceKernelStartThread() public method

public _sceKernelStartThread ( CpuThreadState CpuThreadState, int ThreadId, int UserDataLength, uint UserDataPointer ) : void
CpuThreadState CSPspEmu.Core.Cpu.CpuThreadState
ThreadId int
UserDataLength int
UserDataPointer uint
return void

_sceKernelWaitEventFlagCB() public method

Wait for an event flag for a given bit pattern with callback.
public _sceKernelWaitEventFlagCB ( HleEventFlag EventFlag, uint Bits, EventFlagWaitTypeSet Wait, uint OutBits, uint Timeout, bool HandleCallbacks ) : int
EventFlag HleEventFlag
Bits uint The bit pattern to poll for.
Wait EventFlagWaitTypeSet Wait type, one or more of PspEventFlagWaitTypes or'ed together
OutBits uint The bit pattern that was matched.
Timeout uint Timeout in microseconds
HandleCallbacks bool
return int