oz_(un)protect() API unsafe
Denys Duchier
duchier at ps.uni-sb.de
Sun Feb 11 12:38:12 CET 2007
David Hopwood <david.nospam.hopwood at blueyonder.co.uk> writes:
> It needs to be an atomic counter, I think.
there is no need. every operation that creates/touches/references Oz data must
be executed synchronously by the emulator. no other pthread is allowed to
execute such operations. in order to remove this limitation, a mutex would be
needed to protect every heap access and that would be prohibitively expensive.
Cheers,
--Denys
More information about the mozart-hackers
mailing list