H
Han from Lule
Hi,
I am currently working on a project where I having one serial version
and one parallel version of the code.
The layout is as follows:
Caller.h and .c: Always serial
calls
Worker.h, which has to versions
Serial_Worker.c and Parallel_Worker.c.
Both Serial_Worker and Parallel_Worker has only Worker.h as include.
My question is: Is it good practice to do it this way, or should I let
Serial_Worker and Parallel_Worker one header file each, who in turn
only include Worker.h? What are the pros and cons with respctive
method?
It is not important to choose in runtime which verison to use, it is
done in linking.
Thanks,
Krikko
I am currently working on a project where I having one serial version
and one parallel version of the code.
The layout is as follows:
Caller.h and .c: Always serial
calls
Worker.h, which has to versions
Serial_Worker.c and Parallel_Worker.c.
Both Serial_Worker and Parallel_Worker has only Worker.h as include.
My question is: Is it good practice to do it this way, or should I let
Serial_Worker and Parallel_Worker one header file each, who in turn
only include Worker.h? What are the pros and cons with respctive
method?
It is not important to choose in runtime which verison to use, it is
done in linking.
Thanks,
Krikko