mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:31:51 +08:00
sem:remove sem default protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -1723,7 +1723,6 @@ static ssize_t adb_char_read(FAR struct file *filep, FAR char *buffer,
|
||||
|
||||
adb_char_waiter_sem_t sem;
|
||||
nxsem_init(&sem.sem, 0, 0);
|
||||
nxsem_set_protocol(&sem.sem, SEM_PRIO_NONE);
|
||||
|
||||
do
|
||||
{
|
||||
@@ -1849,7 +1848,6 @@ static ssize_t adb_char_write(FAR struct file *filep,
|
||||
|
||||
adb_char_waiter_sem_t sem;
|
||||
nxsem_init(&sem.sem, 0, 0);
|
||||
nxsem_set_protocol(&sem.sem, SEM_PRIO_NONE);
|
||||
|
||||
do
|
||||
{
|
||||
|
||||
@@ -1332,13 +1332,6 @@ int usbmsc_configure(unsigned int nluns, void **handle)
|
||||
nxmutex_init(&priv->thlock);
|
||||
nxsem_init(&priv->thwaitsem, 0, 0);
|
||||
|
||||
/* The thsynch and thwaitsem semaphores are used for signaling and, hence,
|
||||
* should not have priority inheritance enabled.
|
||||
*/
|
||||
|
||||
nxsem_set_protocol(&priv->thsynch, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&priv->thwaitsem, SEM_PRIO_NONE);
|
||||
|
||||
sq_init(&priv->wrreqlist);
|
||||
priv->nluns = nluns;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user