gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gluster-devel] stack_wind questions


From: Corin Langosch
Subject: [Gluster-devel] stack_wind questions
Date: Wed, 29 Oct 2008 23:58:49 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

Hi,

I just looked some time at the code but I think I just didn't get the
usage of STACK_WIND / STACK_UNWIND right.

Looking at the macros and the translators (for example), STACK_WIND
simply seems to setup some datastructures and then call the suplied
function. After that function is done, the MACRO is done and code
executions continues normal.

So if I put a STACK_WIND into a loop (like in unify) the function passed
in the MACRO is simply called. So the calls don't happen in parallel but
normal seriazliezd, as they would have happened without using
STACK_WIND. So what is STACK_WIND all about - for me it currently seems
to be for passing (some common) data between function calls. It doesn't
execute any functions in parallel in order to reduce latencies caused by
the backends?

The function call in the STACK_UNWIND macro puzzles me even more. What
is this for? As the STACK_UNWIND function is called from within the
function called by STACK_WIND, I'd suspect some kind of loop?

What's about with the while(0) inside the macros. They don't do anything? ;)

Thanks for any clarifications :)
Corin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]