Am Samstag, den 30.08.2014, 09:43 +0200 schrieb Jens Gustedt: > Am Samstag, den 30.08.2014, 01:30 -0400 schrieb Rich Felker: > > I don't see any problem if an application has both types visible in > > one of it's TUs, since no "aliasing" takes place on the app side. The > > tagless structure "struct { union {...} __u; }" (whichever instance of > > it) is simply zero-initialized on the application TU side. On the > > implementation side, functions like pthread_mutex_trylock access a > > tagless structure "struct { union {...} __u; }", of which they have > > only one defined: the one referenced by the pthread_mutex_t typedef. > > As I said, on the side of the current C thread implementation that > needs a thorough revision to be sure that none of the TU sees two > types. I'll look into that. There are several C thread functions that use internals from pthread_impl.h. - thrd_xxx and tss but these don't use mutex or cv - mtx but these only use minimal stuff so this should be doable. Jens -- :: INRIA Nancy Grand Est ::: AlGorille ::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::