|
|
|
@ -5,19 +5,18 @@
|
|
|
|
|
#include <sandbox.h>
|
|
|
|
|
|
|
|
|
|
/* Returns pointer back if successful, null otherwise */
|
|
|
|
|
typedef struct sandbox *(*sandbox_run_queue_add_t)(struct sandbox *);
|
|
|
|
|
typedef bool (*sandbox_run_queue_is_empty_t)(void);
|
|
|
|
|
typedef void (*sandbox_run_queue_delete_t)(struct sandbox *sandbox);
|
|
|
|
|
typedef struct sandbox *(*sandbox_run_queue_get_next_t)();
|
|
|
|
|
|
|
|
|
|
typedef void (*sandbox_run_queue_preempt_t)(ucontext_t *);
|
|
|
|
|
|
|
|
|
|
typedef struct sandbox_run_queue_config_t {
|
|
|
|
|
sandbox_run_queue_add_t add;
|
|
|
|
|
sandbox_run_queue_is_empty_t is_empty;
|
|
|
|
|
sandbox_run_queue_delete_t delete;
|
|
|
|
|
sandbox_run_queue_get_next_t get_next;
|
|
|
|
|
sandbox_run_queue_preempt_t preempt;
|
|
|
|
|
typedef struct sandbox *(*sandbox_run_queue_add_fn_t)(struct sandbox *);
|
|
|
|
|
typedef bool (*sandbox_run_queue_is_empty_fn_t)(void);
|
|
|
|
|
typedef void (*sandbox_run_queue_delete_fn_t)(struct sandbox *sandbox);
|
|
|
|
|
typedef struct sandbox *(*sandbox_run_queue_get_next_fn_t)();
|
|
|
|
|
typedef void (*sandbox_run_queue_preempt_fn_t)(ucontext_t *);
|
|
|
|
|
|
|
|
|
|
typedef struct sandbox_run_queue_config {
|
|
|
|
|
sandbox_run_queue_add_fn_t add;
|
|
|
|
|
sandbox_run_queue_is_empty_fn_t is_empty;
|
|
|
|
|
sandbox_run_queue_delete_fn_t delete;
|
|
|
|
|
sandbox_run_queue_get_next_fn_t get_next;
|
|
|
|
|
sandbox_run_queue_preempt_fn_t preempt;
|
|
|
|
|
} sandbox_run_queue_config_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|