In our previous episode, Henry Vermaak said:
> > === code begin ===
> > 
> > sem_t_rec = record end;
> > sem_t = ^sem_t_rec;
> > 
> > === code end ===
> 
> Indeed, but trunk pthread.inc looks different from this:
> 
> sem_t = record
>       magic   : cuint32;
>       lock    : pthread_mutex_t;
>       gtzero  : pthread_cond_t;
>       count   : cuint32;
>       nwaiters: cuint32;
>       semid   : semid_t;
>       sysse   : cint;
>       entry   : psem_t;
>       backpointer : ppsem_t;
>       spare : array[0..SEM_SAFE] of char;
> end;
> 
> Since the definition of TSemaphore is in this file, this definition will
> be used?

For the threadmanager it will be yes. Since the $i pthreads.inc  is after
the unixtype include in cthreads.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to