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/gui.c | |
parent | fe567952057e820b040371be639842fcb2317bf2 (diff) | |
download | netsurf-f8d8d218d8d5f7fdeb2edc0c5fa3f0a22e6d5a1b.tar.gz netsurf-f8d8d218d8d5f7fdeb2edc0c5fa3f0a22e6d5a1b.tar.bz2 |
Initial steps for a scheduler process
Diffstat (limited to 'amiga/gui.c')
-rw-r--r-- | amiga/gui.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index e76a01e66..0f5210179 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2689,12 +2689,11 @@ void ami_get_msg(void) { ULONG winsignal = 1L << sport->mp_SigBit; ULONG appsig = 1L << appport->mp_SigBit; - ULONG schedulesig = 1L << msgport->mp_SigBit; + ULONG schedulesig = 1L << schedulermsgport->mp_SigBit; /* \todo create schedulermsgport */ ULONG ctrlcsig = SIGBREAKF_CTRL_C; uint32 signal = 0; fd_set read_fd_set, write_fd_set, except_fd_set; int max_fd = -1; - struct TimerRequest *timermsg = NULL; struct MsgPort *printmsgport = ami_print_get_msgport(); ULONG printsig = 0; ULONG helpsignal = ami_help_signal(); @@ -2742,8 +2741,8 @@ void ami_get_msg(void) ami_print_cont(); } - if(signal & schedulesig) { - if((timermsg = (struct TimerRequest *)GetMsg(msgport))) { + if(signal & schedulesig) { /* \todo rewrite */ + while((timermsg = (struct TimerRequest *)GetMsg(msgport))) { ReplyMsg((struct Message *)timermsg); schedule_run(); } |