Skip to content

Expose thread/task priorities #819

@steveklabnik

Description

@steveklabnik

Issue by hoeppnertill
Wednesday Jul 23, 2014 at 18:09 GMT

For earlier discussion, see rust-lang/rust#15927

This issue was labelled with: A-libs in the Rust repository


Trying to find an equivalent to the following C++ code,

struct sched_param p;
p.sched_priority = priority;
pthread_setschedparam(thread_, SCHED_FIFO, &p);

I failed to set the task priority using just exposed API.

brsons statement on IRC,

you can just call the pthread functions, but you'll be creating a thread that doesn't have the runtime setup properly

leaves little doubt that an exposed API for this actually is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-community-libraryArea: The RFC is related to a community library.T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions