Skip to content
Snippets Groups Projects
Commit af459546 authored by Mark Charlebois's avatar Mark Charlebois
Browse files

POSIX: hrt_work_lock.h to hrt_work.h


The header file now contains all hrt workqueue related prototypes.

Signed-off-by: default avatarMark Charlebois <charlebm@gmail.com>
parent 6fd612a2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment