[m-rev.] for review: shift spawn/3 etc, into the standard library
Julien Fischer
juliensf at csse.unimelb.edu.au
Tue Jan 16 00:32:33 AEDT 2007
On Mon, 15 Jan 2007, Julien Fischer wrote:
> Estimated hours taken: 2
> Branches: main
>
> Shift extras/concurrency/spawn.m into a new standard library module
> named `thread'.
...
> +:- pragma foreign_code("C#", "
> +public class MercuryThread {
> + object[] Goal;
> +
> + public MercuryThread(object[] g)
> + {
> + Goal = g;
> + }
> +
> + public void execute_goal()
> + {
> + thread.mercury_code.call_back_to_mercury_cc_multi(Goal);
> + }
> +}").
One further change:
The call in the C# code for execute_goal should have mercury. prefixed
to it since thread is a stdlib module.
Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list