This is the mail archive of the cygwin-developers@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

current winsup/cygwin/*.h files policy


Hi!

  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_
...
#endif
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.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]