diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-05 22:58:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-05 22:58:36 +0000 |
commit | 7d5e90d121078be23986be35252a4612d2f39f68 (patch) | |
tree | ad18d357e3560b507d64f9d64a173f3e2f161ab7 /nuttx/include/nuttx/wqueue.h | |
parent | 4e4e59b8d249ed809a8a97072f0f7efcbaf4bc89 (diff) | |
download | nuttx-7d5e90d121078be23986be35252a4612d2f39f68.tar.gz nuttx-7d5e90d121078be23986be35252a4612d2f39f68.tar.bz2 nuttx-7d5e90d121078be23986be35252a4612d2f39f68.zip |
Incorporate the work thread
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2230 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/wqueue.h')
-rwxr-xr-x | nuttx/include/nuttx/wqueue.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/wqueue.h b/nuttx/include/nuttx/wqueue.h index 5b6a3651e..f1ebc3ec0 100755 --- a/nuttx/include/nuttx/wqueue.h +++ b/nuttx/include/nuttx/wqueue.h @@ -42,6 +42,7 @@ #include <nuttx/config.h> #include <sys/types.h> +#include <signal.h> #include <queue.h> #ifdef CONFIG_SCHED_WORKQUEUE @@ -132,6 +133,22 @@ EXTERN int work_queue(struct work_s *work, worker_t worker, FAR void *arg, uint3 EXTERN int work_cancel(struct work_s *work); +/**************************************************************************** + * Name: work_signal + * + * Description: + * Signal the worker thread to process the work queue now. + * + * Input parameters: + * None + * + * Returned Value: + * Zero on success, a negated errno on failure + * + ****************************************************************************/ + +#define work_signal() kill(g_worker, SIGWORK) + #undef EXTERN #ifdef __cplusplus } |