FreeBSD Bugzilla – Attachment 227779 Details for
Bug 258381
multimedia/libx264: This library inappropriately lowered the scheduling priority of the process using it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
multimedia/x264/files/patch-common-osdep.h
patch-common-osdep.h (text/plain), 777 bytes, created by
WHR
on 2021-09-09 05:45:04 UTC
(
hide
)
Description:
multimedia/x264/files/patch-common-osdep.h
Filename:
MIME Type:
Creator:
WHR
Created:
2021-09-09 05:45:04 UTC
Size:
777 bytes
patch
obsolete
>--- work/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154/common/osdep.h.orig 2021-06-13 20:43:57.000000000 +0800 >+++ work/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154/common/osdep.h 2021-09-09 13:22:28.067168000 +0800 >@@ -568,8 +568,13 @@ > #define x264_lower_thread_priority(p)\ > { UNUSED status_t nice_ret = set_thread_priority( find_thread( NULL ), B_LOW_PRIORITY ); } > #else >+#if 0 >+// BUG: Don't use nice(3), it will affect the whole process, not only the calling thread! > #include <unistd.h> > #define x264_lower_thread_priority(p) { UNUSED int nice_ret = nice(p); } >+#else >+#define x264_lower_thread_priority(p) >+#endif > #endif /* SYS_WINDOWS */ > #elif HAVE_WIN32THREAD > #define x264_lower_thread_priority(p) SetThreadPriority( GetCurrentThread(), X264_MAX( -2, -p ) )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 258381
:
227779
|
227780