[fpc-devel] POSIX threads and classes

Артем Смирнов smirnoffjr at gmail.com
Mon May 7 16:40:40 CEST 2007


No, pthread_condattr_init and pthread_cond_init initialize variables CAttr
and Cond. By the by, this code written in C work right.

2007/5/7, Leonardo M. Ramé <martinrame at yahoo.com>:
>
> > {TCondv}
> > constructor TCondv.Create;
> > begin
> >   pthread_condattr_init(CAttr);
> >   pthread_cond_init(Cond, CAttr);
> > end;
>
> I never used pthreads, but looking at the constructor of TCondv, it seems
> to require CAttr and
> Conv  to be setted before calling pthread_condattr_init and
> pthread_cond_init.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070507/cb9ecd53/attachment.html>


More information about the fpc-devel mailing list