[fpc-devel] about realtime tasks

Stefan Kisdaroczi kisda at hispeed.ch
Thu Jan 19 09:43:44 CET 2006

Am Thursday 19 January 2006 09:24 schrieb Florian Klaempfl:
> Stefan Kisdaroczi wrote:
> > Am Wednesday 18 January 2006 12:06 schrieb Vinzent Hoefler:
> >>On Wednesday 18 January 2006 10:30, Stefan Kisdaroczi wrote:
> >
> > ...
> >
> >>>When I include cthreads and (manually?) initialize the ThreadManager,
> >>>would it be ok ?
> >>
> >>I think you should "simply" write and install your own thread manager
> >>based on the (native or the RT-POSIX-threads) xenomai API and link to
> >>the xenomai library _instead_ of the libpthread.
> >
> > Looking at the thread manager it seems the right way to go. Great that
> > you can just drop in your own manager. I'm really happy now, this seems
> > just perfect for my needs.
> >
> > Thx Vinzent for the hint, and thx to all for this nice compiler.
> > Have a nice day.
> Using the implementation of the C based thread manager might avoid some
> foot traps regarding threadvars etc.

I studied the cthreads.pas yesterday, and I'll do it based on it. I found 
there some reasons for my crashes: I used try..except in my task, but the tls 
needs to be setup for this, and I used write() in the task, but I shouldn't 
before initthread is called.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060119/30bed9ce/attachment.sig>

More information about the fpc-devel mailing list