[m-dev.] pragma import and the global lock
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Feb 26 02:25:23 AEDT 2003
On 25-Feb-2003, Peter Ross <pro at missioncriticalit.com> wrote:
> pragma import currently obtains the global lock when executing the
> imported predicate. It is not clear to me that this should be the
> default behaviour seeing that one cannot turn it off.
Sure you can, just use the "thread_safe" attribute:
:- pragma import(foo(...), [thread_safe], "foo").
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list