rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.66k stars 357 forks source link

rz_core_task_enqueue: Set semaphore init val immediately #4542

Closed kazarmy closed 3 months ago

kazarmy commented 3 months ago

Your checklist for this pull request

Detailed description

This pr sets immediately the semaphore initial value in rz_core_task_enqueue() without going through rz_th_sem_wait(). Curious to know whether this simplification causes any problems.

Test plan

All builds are green.

Closing issues

...