The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: xPLHal scripting matches


  • Subject: RE: xPLHal scripting matches
  • From: Tony Tofts
  • Date: Wed, 10 Sep 2003 18:34:00 +0000

> - I hadn't anticipated any concurrency in the scripts (
> multiple threads ) - haven't really thought if that would be
> advantageous or complex, requiring a lock mechanism to
> guarantee the correct order of execution.

There is no order of execution, messages are processed as received.
That's the concept behind xplhal, and not something I'd want to change.

Each message received spawns a separate thread.
That thread searches for the first existing script match and executes it.
Although the loop could actually continue and look for further matches, I'm
pretty sure that once a script is launched it is independent, and therefore
the scripts would be concurrent as well as the messages.

The fact that my rather complex meteor script, which does database lookups
etc via xpl message works fine, proves the concept in my opinion

I feel trying to force a sequential processing order would put an
artificial
limitation into the system

Regards
Tony






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.