[fpc-devel] volatile variables

Michael Schnell mschnell at lumino.de
Wed Jun 29 17:39:05 CEST 2011

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.


More information about the fpc-devel mailing list