POSIX: hrt_work_lock.h to hrt_work.h

The header file now contains all hrt workqueue related prototypes.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-06-02 01:06:18 -07:00
parent 6fd612a218
commit af45954690
5 changed files with 9 additions and 15 deletions

View File

@ -42,7 +42,7 @@
#include <semaphore.h>
#include <time.h>
#include <string.h>
#include "hrt_work_lock.h"
#include "hrt_work.h"
static struct sq_queue_s callout_queue;

View File

@ -47,7 +47,7 @@
#include <semaphore.h>
#include <drivers/drv_hrt.h>
#include <px4_workqueue.h>
#include "hrt_work_lock.h"
#include "hrt_work.h"
#ifdef CONFIG_SCHED_WORKQUEUE

View File

@ -46,7 +46,7 @@
#include <queue.h>
#include <px4_workqueue.h>
#include <drivers/drv_hrt.h>
#include "hrt_work_lock.h"
#include "hrt_work.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -41,7 +41,7 @@
#include <px4_defines.h>
#include <queue.h>
#include <px4_workqueue.h>
#include "hrt_work_lock.h"
#include "hrt_work.h"
/****************************************************************************
* Pre-processor Definitions
@ -68,26 +68,21 @@
****************************************************************************/
/****************************************************************************
* Name: work_cancel
* Name: hrt_work_cancel
*
* Description:
* Cancel previously queued work. This removes work from the work queue.
* After work has been canceled, it may be re-queue by calling work_queue()
* again.
* After work has been canceled, it may be re-queue by calling
* hrt_work_queue() again.
*
* Input parameters:
* qid - The work queue ID
* work - The previously queue work structure to cancel
*
* Returned Value:
* Zero on success, a negated errno on failure
*
****************************************************************************/
int hrt_work_cancel(struct work_s *work)
void hrt_work_cancel(struct work_s *work)
{
struct wqueue_s *wqueue = &g_hrt_work;
//irqstate_t flags;
//DEBUGASSERT(work != NULL && (unsigned)qid < NWORKERS);
@ -113,5 +108,4 @@ int hrt_work_cancel(struct work_s *work)
}
hrt_work_unlock();
return PX4_OK;
}

View File

@ -46,7 +46,7 @@
#include <errno.h>
#include <unistd.h>
#include "systemlib/param/param.h"
#include "hrt_work_lock.h"
#include "hrt_work.h"
__BEGIN_DECLS