[Interest] Calling QT Class method from pthread thread
Thiago Macieira
thiago.macieira at intel.com
Wed Oct 4 18:30:46 CEST 2017
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.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list