diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-21 23:46:22 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-11-22 16:27:39 +0000 |
commit | f8d8d218d8d5f7fdeb2edc0c5fa3f0a22e6d5a1b (patch) | |
tree | 5b4ccabe8e5fc2bf128f89509fe000da45a56e6a /amiga/schedule.h | |
parent | fe567952057e820b040371be639842fcb2317bf2 (diff) | |
download | netsurf-f8d8d218d8d5f7fdeb2edc0c5fa3f0a22e6d5a1b.tar.gz netsurf-f8d8d218d8d5f7fdeb2edc0c5fa3f0a22e6d5a1b.tar.bz2 |
Initial steps for a scheduler process
Diffstat (limited to 'amiga/schedule.h')
-rwxr-xr-x | amiga/schedule.h | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/amiga/schedule.h b/amiga/schedule.h index 9fcec9a82..70255a96e 100755 --- a/amiga/schedule.h +++ b/amiga/schedule.h @@ -18,15 +18,8 @@ #ifndef AMIGA_SCHEDULE_H #define AMIGA_SCHEDULE_H -#include <proto/timer.h> #include "amiga/os3support.h" -struct Device *TimerBase; -struct TimerIFace *ITimer; - -struct TimeRequest *tioreq; -struct MsgPort *msgport; - /** * Schedule a callback. * @@ -41,19 +34,6 @@ struct MsgPort *msgport; nserror ami_schedule(int t, void (*callback)(void *p), void *p); /** - * Initialise amiga scheduler - * - * /return true if initialised ok or false on error. - */ -bool ami_schedule_create(void); - -/** - * Finalise amiga scheduler - * - */ -void ami_schedule_free(void); - -/** * Process events up to current time. * * This implementation only takes the top entry off the heap, it does not @@ -62,5 +42,12 @@ void ami_schedule_free(void); */ void schedule_run(void); +/** + * Create a new process for the scheduler. + * + * \param nsmsgport Message port to send timer events to. + * \return NSERROR_OK on success or error code on faliure. + */ +nserror ami_scheduler_process_create(struct MsgPort *nsmsgport); #endif |