libs/libc/wqueue/work_usrthread.c: Fix some errors that I introduced in a recent commit.

This commit is contained in:
Gregory Nutt 2018-09-16 11:07:24 -06:00
parent ef8ebe5e93
commit 9f8f1cc5cf
1 changed files with 4 additions and 3 deletions

View File

@ -42,6 +42,7 @@
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>
#include <signal.h>
#include <sched.h> #include <sched.h>
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
@ -268,7 +269,7 @@ void work_process(FAR struct usr_wqueue_s *wqueue)
* signals directed to the worker thread to pend. * signals directed to the worker thread to pend.
*/ */
(void)nxsig_procmask(SIG_BLOCK, &sigset, &oldset); (void)sigprocmask(SIG_BLOCK, &sigset, &oldset);
work_unlock(); work_unlock();
if (next == WORK_DELAY_MAX) if (next == WORK_DELAY_MAX)
@ -291,10 +292,10 @@ void work_process(FAR struct usr_wqueue_s *wqueue)
rqtp.tv_sec = sec; rqtp.tv_sec = sec;
rqtp.tv_nsec = (next - (sec * 1000000)) * 1000; rqtp.tv_nsec = (next - (sec * 1000000)) * 1000;
sigtimewait(&sigset, NULL, &rqtp); sigtimedwait(&sigset, NULL, &rqtp);
} }
(void)nxsig_procmask(SIG_SETMASK, &oldset, NULL); (void)sigprocmask(SIG_SETMASK, &oldset, NULL);
} }
/**************************************************************************** /****************************************************************************