v4l2,scripting: Add more thread names
This sets some thread names for the scripting backend's defer thread and the v4l2 udev thread.
This commit is contained in:
parent
e3f416f3fc
commit
57c9844f15
1
deps/obs-scripting/obs-scripting.c
vendored
1
deps/obs-scripting/obs-scripting.c
vendored
@ -85,6 +85,7 @@ struct defer_call {
|
|||||||
static void *defer_thread(void *unused)
|
static void *defer_thread(void *unused)
|
||||||
{
|
{
|
||||||
UNUSED_PARAMETER(unused);
|
UNUSED_PARAMETER(unused);
|
||||||
|
os_set_thread_name("scripting: defer");
|
||||||
|
|
||||||
while (os_sem_wait(defer_call_semaphore) == 0) {
|
while (os_sem_wait(defer_call_semaphore) == 0) {
|
||||||
struct defer_call info;
|
struct defer_call info;
|
||||||
|
@ -115,6 +115,7 @@ static void *udev_event_thread(void *vptr)
|
|||||||
struct udev_device *dev;
|
struct udev_device *dev;
|
||||||
|
|
||||||
/* set up udev monitoring */
|
/* set up udev monitoring */
|
||||||
|
os_set_thread_name("v4l2: udev");
|
||||||
udev = udev_new();
|
udev = udev_new();
|
||||||
mon = udev_monitor_new_from_netlink(udev, "udev");
|
mon = udev_monitor_new_from_netlink(udev, "udev");
|
||||||
udev_monitor_filter_add_match_subsystem_devtype(mon, "video4linux",
|
udev_monitor_filter_add_match_subsystem_devtype(mon, "video4linux",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user