[fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Anthony Walter
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

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Jonas Maebe
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

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Anthony Walter
Thanks for the prompt reply Jonas. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Anthony Walter
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

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Anthony Walter
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

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Sven Barth
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.

Re: [fpc-pascal] What's the status of RTL and IsMultiThreaded := True?

2013-04-13 Thread Tomas Hajny
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 -