1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibThreading: Add thread priority controls to Thread

This exposes the now properly working pthread APIs on the higher level.
This commit is contained in:
kleines Filmröllchen 2022-11-13 10:23:24 +01:00 committed by Linus Groh
parent e63f3f3c96
commit 7237be763f
2 changed files with 24 additions and 0 deletions

View file

@ -24,6 +24,9 @@ class Thread final : public Core::Object {
public:
virtual ~Thread();
ErrorOr<void> set_priority(int priority);
ErrorOr<int> get_priority() const;
void start();
void detach();