> On Oct 30, 2022, at 7:20 PM, Marco van de Voort via fpc-pascal
> wrote:
>
> I'm not that deep into those procedural threading. From what I remember the
> prototypes are defined, but not their use.
>
> But since tthread works on top of that, you can simply trace how tthread does
> it, whic
On 30-10-2022 13:05, Hairy Pixels via fpc-pascal wrote:
On Oct 30, 2022, at 6:55 PM, Marco van de Voort via fpc-pascal
wrote:
Yes. They call pthread_detach when ending, i.e. just before calling
pthread_exit. So if you use normal threads, you already use that.
Similarly, pthread_join is a
> On Oct 30, 2022, at 6:55 PM, Marco van de Voort via fpc-pascal
> wrote:
>
> Yes. They call pthread_detach when ending, i.e. just before calling
> pthread_exit. So if you use normal threads, you already use that.
>
> Similarly, pthread_join is a part of tthread.waitfor . Have a look at
>
On 30-10-2022 12:28, Hairy Pixels via fpc-pascal wrote:
The POSIX thread library has a function called pthread_detach
(https://man7.org/linux/man-pages/man3/pthread_detach.3.html). Do the RTL
threads have anything comparable?
Yes. They call pthread_detach when ending, i.e. just before callin
The POSIX thread library has a function called pthread_detach
(https://man7.org/linux/man-pages/man3/pthread_detach.3.html). Do the RTL
threads have anything comparable? Honestly I don’t really understand why this
is even needed because the threads seem to clean themselves up when they exit
any