[Interest] Calling QT Class method from pthread thread
Gonzalo Aguilar Delgado
gaguilar at aguilardelgado.com
Wed Oct 4 18:35:33 CEST 2017
Thiago,
I should say that even with my error causing me havok of hours destroyed.
The callback way is good enough to be used, I don't know why you say
"Any other use is flawed by design". But that's another discussion.
I think you gave great insights of the Framework, debugging and where to
look where something goes wrong. I really appreciate it.
Best regards,
On 04/10/17 18:30, Thiago Macieira wrote:
> On Wednesday, 4 October 2017 09:24:03 PDT Gonzalo Aguilar Delgado wrote:
>> typedef gboolean (*SG64ZeroMQHandler)(SG64ZeroMQ* mq, ThriftStruct*
>> message, GError **error);
>>
>> instead
>>
>> typedef gboolean (*SG64ZeroMQHandler)(SG64ZeroMQ* mq, ThriftStruct*
>> message, gpointer data, GError **error);
> It would have, if you hadn't explicitly cast the difference away. A lot of
> Glib-using code does that because of GCallback and G_CALLBACK.
>
> Avoid those like the plague, except for functions that really take no
> arguments and return void. Any other use is flawed by design.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171004/33f28225/attachment.html>
More information about the Interest
mailing list