mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
semaphore: fix usage of NXSEM_INITIALIZER
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
c08d9047b2
commit
ebffcdc992
@@ -50,7 +50,7 @@ static dq_queue_t g_aioc_free;
|
|||||||
/* This counting semaphore tracks the number of free AIO containers */
|
/* This counting semaphore tracks the number of free AIO containers */
|
||||||
|
|
||||||
static sem_t g_aioc_freesem = NXSEM_INITIALIZER(CONFIG_FS_NAIOC,
|
static sem_t g_aioc_freesem = NXSEM_INITIALIZER(CONFIG_FS_NAIOC,
|
||||||
SEM_PRIO_NONE);
|
PRIOINHERIT_FLAGS_DISABLE);
|
||||||
|
|
||||||
/* This binary semaphore supports exclusive access to the list of pending
|
/* This binary semaphore supports exclusive access to the list of pending
|
||||||
* asynchronous I/O. g_aio_holder and a_aio_count support the reentrant
|
* asynchronous I/O. g_aio_holder and a_aio_count support the reentrant
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
struct hp_wqueue_s g_hpwork =
|
struct hp_wqueue_s g_hpwork =
|
||||||
{
|
{
|
||||||
{},
|
{},
|
||||||
NXSEM_INITIALIZER(0, SEM_PRIO_NONE),
|
NXSEM_INITIALIZER(0, PRIOINHERIT_FLAGS_DISABLE),
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* CONFIG_SCHED_HPWORK */
|
#endif /* CONFIG_SCHED_HPWORK */
|
||||||
@@ -91,7 +91,7 @@ struct hp_wqueue_s g_hpwork =
|
|||||||
struct lp_wqueue_s g_lpwork =
|
struct lp_wqueue_s g_lpwork =
|
||||||
{
|
{
|
||||||
{},
|
{},
|
||||||
NXSEM_INITIALIZER(0, SEM_PRIO_NONE),
|
NXSEM_INITIALIZER(0, PRIOINHERIT_FLAGS_DISABLE),
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* CONFIG_SCHED_LPWORK */
|
#endif /* CONFIG_SCHED_LPWORK */
|
||||||
|
|||||||
Reference in New Issue
Block a user