On 06/29/2011 05:57 PM, Hans-Peter Diettrich wrote:
This means that a simplified version of TThreadList would be nice,
that allows to wrap a single shareable object and make it usable in an
thread-safe way.
IMHO just TList is OH for this purpose. It (supposedly) is "per-instance
thread safe": if an instance is used just by a single thread, the code
is safe, if the same instance is used by multiple threads the code is
not safe.
The necessity of a more complex definition of thread safety for Objects
(as a tribute to the hidden self parameter that is not considered as an
"input" by the average user) was the starting point of the discussion in
the Lazarus list.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel