I did some Googling earlier tonight regarding using the RTL and threads
without creating a TThread class. I found some older results from this
mailing list such as...
http://www.hu.freepascal.org/lists/fpc-pascal/2010-October/026712.html
Basically, what I want to know is HOW DO I... ensure the
On 13 Apr 2013, at 11:12, Anthony Walter wrote:
Basically, what I want to know is HOW DO I... ensure the RTL memory
management is safe if multiple threads are running, but if a TThread class
is never instantiated.
You have to start at least one thread before the multithreading functionality
Thanks for the prompt reply Jonas.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Oh, I just thought of a followup question. If I have to call BeginThread to
make the memory manager/rtl thread aware, do I then have to also have to
check the OS type (and maybe the CPU architecture) and possibly add more
units? Is it safe to call BeginThread on all platforms/architectures using
Oh and yet another question ...
What is the minimum that needs to be done on all platforms/cpus to enabled
thread local storage (aka threadvar)?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
On 13.04.2013 16:06, Anthony Walter wrote:
Oh, I just thought of a followup question. If I have to call BeginThread
to make the memory manager/rtl thread aware, do I then have to also
have to check the OS type (and maybe the CPU architecture)
No, you need to do this for every system.
On 13 Apr 13, at 16:36, Sven Barth wrote:
.
.
This line (or a similar one) is needed only on systems where the thread
manager is not included in the system unit (e.g. not on Windows systems)
...or OS/2... ;-)
Tomas
___
fpc-pascal maillist -