Semaphore maximum count is hardcoded to 128
- Dominant language
- C
- Stars
- 893
- Forks
- 512
- Avg merge
- 13d 31m
- Merged PRs (30d)
- 7
Description
In the API: ble_npl_sem_init, there is no way to define the maximum count for the semaphore being created, and this is left to the OS-specific implementation, like the API: npl_freertos_sem_init that defines this max value to 128.
Proposed solution: Add additional argument to the API: ble_npl_sem_init to define the maximum semaphore count, and this max value is to be passed to the OS-specific implementation.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the ble_npl_sem_init API and the OS-specific npl_freertos_sem_init implementation first. Trace other OS-specific semaphore implementations and their callers to determine the required signature changes. Done means the maximum count is supplied through the common API and passed to each OS-specific implementation instead of using the hardcoded value 128.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100