Multi-threaded light-server example



Hey Everyone,
I am using GUPnP and I want to make sure I am doing all my
inter-thread calls safely. So based on what the FAQ
(https://wiki.gnome.org/Projects/GUPnP/FAQ) says I attempted to make
the light-server example program that is bundled with GUPnP
multi-threaded first as an example for myself. I have attached a full
diff of the light-server.c file. Everything works fine with this
program, but then again I couldn't force any errors before adding
g_main_context_push_thread_default() calls either so I don't trust it
yet. Would someone mind taking a quick look at the diff and make sure
I didn't miss anything (aside from the obvious pointer and error
checking that I left out for simplicity).
Thanks for you help,
Nick

Attachment: multi-threaded_gupnp_calls.diff
Description: Text document



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