[fpc-pascal] Threadvar member field
African Wild Dog
paintedlycaon at gmail.com
Thu Mar 16 19:38:02 CET 2017
I have a class where its instances are shared between multiple threads.
How can I declare one variable per instance per thread?
The code below does not compile (fpc 3.0.0):
TMyClass = class
public
threadvar MyValue: Integer;
end;
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170316/2ec6f652/attachment.html>
More information about the fpc-pascal
mailing list