On 06/10/2011 03:09 AM, Hans-Peter Diettrich wrote:
What is "thread safe"?
IMHO, quite often, this needs further explanation in the docs.
e.g. if the code in question defines a class the diversification is
generated by the potential use of class variables and global variables:
- Are you allowed to create in in another thread but the main thread
(e.g. forbidden for GUI-aware objects) ?
- Can you create the class in one thread and call it's functions and
properties from another one (e.g. forbidden for GUI-aware objects) ?
- Are the functions and properties of a single project reentry-safe
(is it allowed to use the same function of the same instance with
multiple threads).
- Is it allowed to use multiple instances of the object with multiple
threads (each thread uses an instance; is it allowed to use the same
function of a different instance with multiple threads).
- Does an instance internally create threads and are events thrown in
the context of such a thread instead in the context of the thread that
created the object ?
- ...
-Michael
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus