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:
parent
e63f3f3c96
commit
7237be763f
2 changed files with 24 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue