Aarón Bueno Villares
2016-02-25 00:17:22 UTC
I have a WFileUpload widget whose uploaded() signal is connected to two
different functions, one creating a database object, and another one
showing information about the newly created db object.
It's obvious that the first function must be invoke before the second one,
so, I connected both functions to the signal in that order. But it seems
that the functions are being called in inverse order of connection (which
contradicts the behaviour of boost::signals2 as far as I know), and that
caused me some headeaches and segmentation faults.
So, the question is: in which order are the connected functions invoked
when calling `emit()`? In the reverse order of connection, or that depends
on the context or on some Javascript logic?
Best regards,
Peregring-lk
different functions, one creating a database object, and another one
showing information about the newly created db object.
It's obvious that the first function must be invoke before the second one,
so, I connected both functions to the signal in that order. But it seems
that the functions are being called in inverse order of connection (which
contradicts the behaviour of boost::signals2 as far as I know), and that
caused me some headeaches and segmentation faults.
So, the question is: in which order are the connected functions invoked
when calling `emit()`? In the reverse order of connection, or that depends
on the context or on some Javascript logic?
Best regards,
Peregring-lk