#include "list.h"
#include "safe_list.h"
#include "uloop.h"
Go to the source code of this file.
|
void | runqueue_init (struct runqueue *q) |
|
void | runqueue_cancel (struct runqueue *q) |
|
void | runqueue_cancel_active (struct runqueue *q) |
|
void | runqueue_cancel_pending (struct runqueue *q) |
|
void | runqueue_kill (struct runqueue *q) |
|
void | runqueue_stop (struct runqueue *q) |
|
void | runqueue_resume (struct runqueue *q) |
|
void | runqueue_task_add (struct runqueue *q, struct runqueue_task *t, bool running) |
|
void | runqueue_task_add_first (struct runqueue *q, struct runqueue_task *t, bool running) |
|
void | runqueue_task_complete (struct runqueue_task *t) |
|
void | runqueue_task_cancel (struct runqueue_task *t, int type) |
|
void | runqueue_task_kill (struct runqueue_task *t) |
|
void | runqueue_process_add (struct runqueue *q, struct runqueue_process *p, pid_t pid) |
|
void | runqueue_process_cancel_cb (struct runqueue *q, struct runqueue_task *t, int type) |
|
void | runqueue_process_kill_cb (struct runqueue *q, struct runqueue_task *t) |
|
◆ RUNQUEUE
◆ RUNQUEUE_INIT
#define RUNQUEUE_INIT |
( |
|
_name, |
|
|
|
_max_running |
|
) |
| |
Value: { \
.max_running_tasks = _max_running \
}
#define SAFE_LIST_INIT(_name)
Definition at line 93 of file runqueue.h.
◆ runqueue_cancel()
void runqueue_cancel |
( |
struct runqueue * |
q | ) |
|
Definition at line 102 of file runqueue.c.
void runqueue_cancel_active(struct runqueue *q)
void runqueue_cancel_pending(struct runqueue *q)
◆ runqueue_cancel_active()
void runqueue_cancel_active |
( |
struct runqueue * |
q | ) |
|
Definition at line 92 of file runqueue.c.
static int __runqueue_cancel(void *ctx, struct safe_list *list)
int safe_list_for_each(struct safe_list *head, int(*cb)(void *ctx, struct safe_list *list), void *ctx)
struct safe_list tasks_active
◆ runqueue_cancel_pending()
void runqueue_cancel_pending |
( |
struct runqueue * |
q | ) |
|
Definition at line 97 of file runqueue.c.
struct safe_list tasks_inactive
◆ runqueue_init()
void runqueue_init |
( |
struct runqueue * |
q | ) |
|
Definition at line 31 of file runqueue.c.
#define INIT_SAFE_LIST(_head)
◆ runqueue_kill()
void runqueue_kill |
( |
struct runqueue * |
q | ) |
|
Definition at line 108 of file runqueue.c.
static bool list_empty(const struct list_head *head)
#define list_first_entry(ptr, type, field)
void runqueue_task_kill(struct runqueue_task *t)
struct uloop_timeout timeout
int uloop_timeout_cancel(struct uloop_timeout *timeout)
◆ runqueue_process_add()
Definition at line 269 of file runqueue.c.
void runqueue_task_add(struct runqueue *q, struct runqueue_task *t, bool running)
static const struct runqueue_task_type runqueue_proc_type
static void __runqueue_proc_cb(struct uloop_process *p, int ret)
struct runqueue_task task
struct uloop_process proc
const struct runqueue_task_type * type
int uloop_process_add(struct uloop_process *p)
◆ runqueue_process_cancel_cb()
Definition at line 245 of file runqueue.c.
#define container_of(ptr, type, member)
◆ runqueue_process_kill_cb()
Definition at line 255 of file runqueue.c.
int uloop_process_delete(struct uloop_process *p)
◆ runqueue_resume()
void runqueue_resume |
( |
struct runqueue * |
q | ) |
|
Definition at line 210 of file runqueue.c.
static void runqueue_start_next(struct runqueue *q)
◆ runqueue_stop()
void runqueue_stop |
( |
struct runqueue * |
q | ) |
|
◆ runqueue_task_add()
Definition at line 181 of file runqueue.c.
static void _runqueue_task_add(struct runqueue *q, struct runqueue_task *t, bool running, bool first)
◆ runqueue_task_add_first()
◆ runqueue_task_cancel()
Definition at line 120 of file runqueue.c.
void runqueue_task_complete(struct runqueue_task *t)
void(* cancel)(struct runqueue *q, struct runqueue_task *t, int type)
struct uloop_timeout timeout
int uloop_timeout_set(struct uloop_timeout *timeout, int msecs)
◆ runqueue_task_complete()
Definition at line 216 of file runqueue.c.
void safe_list_del(struct safe_list *list)
void(* complete)(struct runqueue *q, struct runqueue_task *t)
◆ runqueue_task_kill()
Definition at line 191 of file runqueue.c.
void(* kill)(struct runqueue *q, struct runqueue_task *t)