Skip to content

Use GetThreadId/WakeupThread/SleepThread instead of CreateSema/SignalSema/WaitSema#861

Draft
uyjulian wants to merge 1 commit into
ps2dev:masterfrom
uyjulian:use_wakeup_thread_instead_of_sema
Draft

Use GetThreadId/WakeupThread/SleepThread instead of CreateSema/SignalSema/WaitSema#861
uyjulian wants to merge 1 commit into
ps2dev:masterfrom
uyjulian:use_wakeup_thread_instead_of_sema

Conversation

@uyjulian
Copy link
Copy Markdown
Member

Will improve handling in borderline cases where semaphore limit is exhausted
Replaced in the following case:

  • initial_value=0
  • SignalSema was in callback
  • CreateSema/WaitSema was in same thread

…teSema/SignalSema/WaitSema

Will improve handling in borderline cases where semaphore limit is exhausted
Replaced in the cases where initial_value=0, SignalSema was in callback and CreateSema/WaitSema is in same thread
@uyjulian uyjulian changed the title improvement: Use GetThreadId/WakeupThread/SleepThread instead of CreateSema/SignalSema/WaitSema Use GetThreadId/WakeupThread/SleepThread instead of CreateSema/SignalSema/WaitSema May 30, 2026
@uyjulian uyjulian marked this pull request as draft May 31, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant