Fix some compiler errors in user-work queue configuration that crept in the last bunch of commits
This commit is contained in:
parent
4c2a14348a
commit
0c1c37bae2
4 changed files with 3 additions and 6 deletions
|
|
@ -94,7 +94,7 @@ int work_lock(void)
|
|||
int ret;
|
||||
|
||||
#ifdef CONFIG_BUILD_PROTECTED
|
||||
int ret = sem_wait(&g_usrsem);
|
||||
ret = sem_wait(&g_usrsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
DEBUGASSERT(errno == EINTR);
|
||||
|
|
|
|||
|
|
@ -87,8 +87,6 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_LIB_USRWORK) && !defined(__KERNEL__)
|
||||
|
||||
int work_signal(int qid)
|
||||
{
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -87,9 +87,9 @@ struct usr_wqueue_s g_usrwork;
|
|||
/* This semaphore supports exclusive access to the user-mode work queue */
|
||||
|
||||
#ifdef CONFIG_BUILD_PROTECTED
|
||||
extern sem_t g_usrsem;
|
||||
sem_t g_usrsem;
|
||||
#else
|
||||
extern pthread_mutex_t g_usrmutex;
|
||||
pthread_mutex_t g_usrmutex;
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ extern sem_t g_usrsem;
|
|||
#else
|
||||
extern pthread_mutex_t g_usrmutex;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue