[En-Nut-Discussion] Per thread Memory Management - followup
Moritz Struebe
morty at gmx.net
Thu Apr 17 17:57:31 CEST 2008
Hi,
looks like this has less impact then I thought. A neat little typedef
for the header of used mem did the trick.
Thanks anyway.
Cheers
Morty
Moritz Struebe schrieb:
> Hi there,
>
> I'm now starting to assign memory to a thread. Some really cool things
> can be done with this. Like finding memoryleaks. The option of killing
> theads, etc.
> I have a coding style question. As I'll need quite a few ifdefs I see
> two options:
> 1) The common way: Use ifdefs.
> 2) Use a local variable. Assine 0 or 1 to it by ifdef. The Compiler then
> removes the variable and the unused code. Probably this is possible with
> a static global, too, but I'm not sure. I have to test that first.
>
> The latter has the advantage of better to read code and the disadvantage
> of bigger code if something is wrong during the optimization process.
>
> What do you guys think?
>
> Cheers
> Morty
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
More information about the En-Nut-Discussion
mailing list