PDA

View Full Version : Header File Layout


MattD
04-11-2002, 10:27 AM
Hi guys,

just a quick quesiton, whats the best, or perferred way to structure header files for a project that is multithreaded, but requries all threads to be able to access a shared data area.

ideas/opinions/references?

Matt D

kmj
04-11-2002, 10:30 AM
is this a c or c++ project?

MattD
04-11-2002, 10:50 AM
sorry

its midnight here :)

c++

mixed opp approach..
threads will be functional
data will be oop

i didnt think that there was any difference between c/c++ header file compilation?

cheers

Matt D

kmj
04-11-2002, 11:56 AM
Well, afaik, there isn't but you're talking more about style and design...

I don't think there's much to worry about, as long as you make sure you have synchronization taken care of. That's really the big deal in multithreaded programming.