current winsup/cygwin/*.h files policy

Egor Duda
Wed Dec 6 11:24:00 GMT 2000


  if   i  understand  correctly,  *.h  files  in  winsup/cygwin/  were
redesigned   some  time  ago  from   single  monolithic  winsup.h to a
bunch of small *.h files which don't use
#ifndef _FOO_H_
#define _FOO_H_
construct,   and   should   be   included  in  *.cc  files  in correct
order  to satisfy all dependencies.  there're,  however  4  *.h  files
left,   which   include   other   "*.h"  files  --  heap.h,  pinfo.h,
shared_info.h and winsup.h.  was it intentional?

i  want to use per_thread class in thread.h; so what do you think will
be right way: to include    "perthread.h"    before   every  inclusion
of  pinfo.h  or thread.h    of    include    it   in   thread.h   and
guard  it  with #ifndef-#define-#endif ?

btw, does usage of c++'s multiple inheritance allowed in cygwin?

my final goal is to implement pthread_cancel(), if anyone interested.

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

More information about the Cygwin-developers mailing list