Displaying 3 results from an estimated 3 matches for "g_thread_new".
2017 Feb 07
1
Trick to compile older packages
...gst-rtsp-server-0.10.8.2/gst/rtsp-server'
CC libgstrtspserver_0.10_la-rtsp-media.lo
rtsp-media.c: In function 'gst_rtsp_media_class_init':
rtsp-media.c:143:3: error: 'g_thread_create' is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:104): Use 'g_thread_new'
instead [-Werror=deprecated-declarations]
klass->thread = g_thread_create ((GThreadFunc) do_loop, klass, TRUE,
&error);
^
rtsp-media.c: In function 'gst_rtsp_media_init':
rtsp-media.c:160:3: error: 'g_mutex_new' is deprecated (declared at
/usr/include/glib-2.0/glib...
2019 Jul 16
2
Re: [PATCH libnbd] generator: Swap parameters of nbd_add_close_callback.
On 7/16/19 10:39 AM, Eric Blake wrote:
> On 7/16/19 10:04 AM, Richard W.M. Jones wrote:
>> The API changes from:
>>
>> int nbd_add_close_callback (struct nbd_handle *h,
>> nbd_close_callback cb,
>> void *user_data);
>>
>> to:
>>
>> int nbd_add_close_callback (struct nbd_handle
2019 Jul 16
1
[libnbd PATCH] generator: Prefer closure opaque after function pointer in C
Existing practice tends to prefer the void* closure argument for C
callbacks to occur after the function pointer (POSIX: pthread_create;
glibc: qsort_r; glib: g_thread_new; libvirt:
virConnectDomainEventRegisterAny; etc.). It's also handy to think that
calling 'myfunc(cb, arg)' will eventually result in a call to
'cb(arg)'. While I couldn't quickly find any style guide recommending
one way over another, and while it probably doesn't hurt w...