public SemaphoreId sceKernelCreateSema(string Name, SemaphoreAttribute SemaphoreAttribute, int InitialCount, int MaximumCount, SceKernelSemaOptParam* Options) { var HleSemaphore = SemaphoreManager.Create(); { HleSemaphore.Name = Name; HleSemaphore.SceKernelSemaInfo.Attributes = SemaphoreAttribute; HleSemaphore.SceKernelSemaInfo.InitialCount = InitialCount; HleSemaphore.SceKernelSemaInfo.CurrentCount = InitialCount; HleSemaphore.SceKernelSemaInfo.MaximumCount = MaximumCount; } return (SemaphoreId)SemaphoreManager.Semaphores.Create(HleSemaphore); }
public SemaphoreId sceKernelCreateSema(string Name, SemaphoreAttribute SemaphoreAttribute, int InitialCount, int MaximumCount, SceKernelSemaOptParam *Options) { var HleSemaphore = SemaphoreManager.Create(); { HleSemaphore.Name = Name; HleSemaphore.SceKernelSemaInfo.Attributes = SemaphoreAttribute; HleSemaphore.SceKernelSemaInfo.InitialCount = InitialCount; HleSemaphore.SceKernelSemaInfo.CurrentCount = InitialCount; HleSemaphore.SceKernelSemaInfo.MaximumCount = MaximumCount; } return((SemaphoreId)SemaphoreManager.Semaphores.Create(HleSemaphore)); }