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
@ -94,7 +94,7 @@ int work_lock(void)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_PROTECTED
|
#ifdef CONFIG_BUILD_PROTECTED
|
||||||
int ret = sem_wait(&g_usrsem);
|
ret = sem_wait(&g_usrsem);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DEBUGASSERT(errno == EINTR);
|
DEBUGASSERT(errno == EINTR);
|
||||||
|
@ -87,8 +87,6 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_LIB_USRWORK) && !defined(__KERNEL__)
|
|
||||||
|
|
||||||
int work_signal(int qid)
|
int work_signal(int qid)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -87,9 +87,9 @@ struct usr_wqueue_s g_usrwork;
|
|||||||
/* This semaphore supports exclusive access to the user-mode work queue */
|
/* This semaphore supports exclusive access to the user-mode work queue */
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_PROTECTED
|
#ifdef CONFIG_BUILD_PROTECTED
|
||||||
extern sem_t g_usrsem;
|
sem_t g_usrsem;
|
||||||
#else
|
#else
|
||||||
extern pthread_mutex_t g_usrmutex;
|
pthread_mutex_t g_usrmutex;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -81,7 +81,6 @@ extern sem_t g_usrsem;
|
|||||||
#else
|
#else
|
||||||
extern pthread_mutex_t g_usrmutex;
|
extern pthread_mutex_t g_usrmutex;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
|
Loading…
Reference in New Issue
Block a user