mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
LibPthread: Add stubs for pthread_{get,set}schedparam()
These should be the last thing needed to make SDL build with threads support. I think we can survive just fine with stubs of these for now, especially given that the kernel doesn't care super much about thread priorities anyway.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 10:56:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/96e8c8a4e54
@@ -371,6 +371,22 @@ int pthread_attr_setstacksize(pthread_attr_t* attributes, size_t stack_size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pthread_getschedparam(pthread_t thread, int* policy, struct sched_param* param)
|
||||
{
|
||||
(void)thread;
|
||||
(void)policy;
|
||||
(void)param;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param* param)
|
||||
{
|
||||
(void)thread;
|
||||
(void)policy;
|
||||
(void)param;
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct WaitNode : public InlineLinkedListNode<WaitNode> {
|
||||
bool waiting { true };
|
||||
WaitNode* m_next { nullptr };
|
||||
|
||||
Reference in New Issue
Block a user