Ticket #2817 (new bug)

Opened 8 weeks ago

setpriority and getpriority are missing to compile ocaml out of the box under Haiku

Reported by: oco Owned by: axeld
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description

setpriority and getpriority are not yet implemented. There is a TODO in posix/sys/resource.h.

Does the algorithm used in the renice command line tool (in src/bin) could be used in lib root ?

Basically, renice iterate over threads of a team to set the thread priority on each one. A basic conversion function adapt the unix priority to a beos thread one.

If so, maybe i can try to implement this.

This is the only thing missing to compile ocaml out of the box under Haiku (after updating the usual config.sub and config.guess).

Note: See TracTickets for help on using tickets.