Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-11

multi-threaded support

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tim Gustafson

Hello!

Pardon my question if I'm a little slow here, but does the RTL being multi-threaded mean that I don't need to use the CMEM unit to allocate memory in a multi-threaded application? I can't seem to find a CMEM unit anywhere, by the way, so maybe someone can point me to that unit if the new RTL doesn't support thread-safe memory allocation.

Thanks.

Tim

Reply by email

Peter Vreman
to Tim Gustafson
Show quoted text 7 lines
Hello! Pardon my question if I'm a little slow here, but does the RTL being multi-threaded mean that I don't need to use the CMEM unit to allocate memory in a multi-threaded application? I can't seem to find a CMEM unit anywhere, by the way, so maybe someone can point me to that unit if the new RTL doesn't support thread-safe memory allocation.

The RTL heap manager is thread-safe when you include at least once ${Threading On} in your program/unit.

cmem can be found in packages/extra/cmem

Reply by email