Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1552

Re: An easy way to let the WIMP update?

From Paul Sprangers <Paul@sprie.nl>
Subject Re: An easy way to let the WIMP update?
Newsgroups comp.sys.acorn.programmer
Date 2012-03-31 12:32 +0200
Message-ID <527907d28cPaul@sprie.nl> (permalink)
References <2cdb947852.Dentrassis@mail>
Organization None

Show all headers | View raw


In article <2cdb947852.Dentrassis@mail>,
   Gavin <gc@dentrassis.com> wrote:

> During the processing there is no multi-tasking going on as 
> my simple BASIC program hogs the machine until it's finished, and I 
> next call Wimp_Poll. That's fine, and I don't want to go to the effort 
> of re-writing it to process in the background or use a taskwindow etc. 

You probably don't need to thoroughly re-write your program, in order to
let it multi-task. Often, the only thing that should be added is SYS
"Wimp_Poll" call at a strategic position.

For example, if your program processes a file during a loop, say a FOR -
NEXT loop, you may want to try something like this:

FOR i%=1 TO 1000
   REM Do all sort of things
   IF i% MOD100 = 0, THEN SYS"Wimp_Poll",&xxxx,block%
NEXT i%

... where &xxxx is the mask that you defined in your original poll call,
and block% is the memory block that you defined during setup.

Of course, there will be a slight speed penalty, but I think that's a very
small sacrifice compared to all the benefits of multi tasking.

Kind regards,
Paul Sprangers

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

An easy way to let the WIMP update? Gavin <gc@dentrassis.com> - 2012-03-30 14:36 +0100
  Re: An easy way to let the WIMP update? "John Williams (News)" <UCEbin@tiscali.co.uk> - 2012-03-30 15:53 +0200
  Re: An easy way to let the WIMP update? Martin Wuerthner <spamtrap@mw-software.com> - 2012-03-30 17:18 +0200
    Re: An easy way to let the WIMP update? Gavin <gav@dentrassis.com> - 2012-04-07 13:51 +0100
  Re: An easy way to let the WIMP update? Paul Sprangers <Paul@sprie.nl> - 2012-03-31 12:32 +0200
    Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-03-31 13:34 +0100
      Re: An easy way to let the WIMP update? Paul Sprangers <Paul@sprie.nl> - 2012-03-31 15:14 +0200
        Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-03-31 16:04 +0100
          Re: An easy way to let the WIMP update? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-03-31 23:31 +0200
            Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-04-01 10:51 +0100
          Re: An easy way to let the WIMP update? Paul Sprangers <Paul@sprie.nl> - 2012-03-31 23:46 +0200
        Re: An easy way to let the WIMP update? Gerph <gerph@gerph.org> - 2012-03-31 07:32 -0700
      Re: An easy way to let the WIMP update? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-03-31 23:19 +0200
      Re: An easy way to let the WIMP update? Bob Latham <bob@sick-of-spam.invalid> - 2012-04-01 14:25 +0100
        Re: An easy way to let the WIMP update? Steve Fryatt <news@stevefryatt.org.uk> - 2012-04-01 22:09 +0100
          Re: An easy way to let the WIMP update? Bob Latham <bob@sick-of-spam.invalid> - 2012-04-02 08:21 +0100
            Re: An easy way to let the WIMP update? Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2012-04-02 09:54 +0100
        Re: An easy way to let the WIMP update? Gerph <gerph@gerph.org> - 2012-04-01 07:16 -0700
          Re: An easy way to let the WIMP update? Bob Latham <bob@sick-of-spam.invalid> - 2012-04-03 21:26 +0100
      Re: An easy way to let the WIMP update? Gavin <gav@dentrassis.com> - 2012-04-07 13:57 +0100
        Re: An easy way to let the WIMP update? Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2012-04-07 16:01 +0100
        Re: An easy way to let the WIMP update? Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2012-04-07 19:52 +0200

csiph-web