apps: remove unnecessary sem_setprotocol code

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-03-10 08:31:36 +08:00 committed by Alan Carvalho de Assis
parent 0d34e55d9e
commit 4454c8d02f
6 changed files with 0 additions and 7 deletions

View File

@ -83,7 +83,6 @@ CCallback::CCallback(CWidgetControl *widgetControl)
m_synchronized = false;
sem_init(&m_semevent, 0, 0);
sem_setprotocol(&m_semevent, SEM_PRIO_NONE);
#ifdef CONFIG_NXTERM_NXKBDIN
// Keyboard input is initially directed to the widgets within the window

View File

@ -126,7 +126,6 @@ CCalibration::CCalibration(FAR CTwm4Nx *twm4nx)
sem_init(&m_exclSem, 0, 1);
sem_init(&m_synchSem, 0, 0);
sem_setprotocol(&m_synchSem, SEM_PRIO_NONE);
}
/**

View File

@ -297,7 +297,6 @@ bool CClock::run(void)
// start the new Clock task
sem_init(&GClockVars.waitSem, 0, 0);
sem_setprotocol(&GClockVars.waitSem, SEM_PRIO_NONE);
GClockVars.that = this;
GClockVars.success = false;

View File

@ -97,7 +97,6 @@ CInput::CInput(CTwm4Nx *twm4nx)
// Initialize the semaphore used to synchronize with the listener thread
sem_init(&m_waitSem, 0, 0);
sem_setprotocol(&m_waitSem, SEM_PRIO_NONE);
#ifdef CONFIG_TWM4NX_TOUCHSCREEN
// Calibration

View File

@ -193,7 +193,6 @@ void rr_test(void)
sched_lock();
sem_init(&g_rrsem, 0, 0);
sem_setprotocol(&g_rrsem, SEM_PRIO_NONE);
/* Start the threads */

View File

@ -682,10 +682,8 @@ static int i8sak_setup(FAR struct i8sak_s *i8sak, FAR const char *ifname)
sem_init(&i8sak->exclsem, 0, 1);
sem_init(&i8sak->updatesem, 0, 0);
sem_setprotocol(&i8sak->updatesem, SEM_PRIO_NONE);
sem_init(&i8sak->sigsem, 0, 0);
sem_setprotocol(&i8sak->sigsem, SEM_PRIO_NONE);
sem_init(&i8sak->eventsem, 0, 1);