forked from Archive/PX4-Autopilot
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:
parent
6fd612a218
commit
af45954690
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue