Ignore:
Timestamp:
Apr 25, 2005, 5:58:57 AM (20 years ago)
Author:
bird
Message:

Implemented (not tested) process priority manangement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.18 to 1.19
    r1909 r1910  
    789789int __libc_Back_processSetGidAll(gid_t rgid, gid_t egid, gid_t svgid);
    790790
     791/**
     792 * Gets the most favourable priority of a process, group of processes
     793 * or all processed owned by a user.
     794 *
     795 * @returns 0 on success.
     796 * @returns Negative error code (errno.h) on failure.
     797 * @param   iWhich      PRIO_PROCESS, PRIO_PGRP, or PRIO_USER.
     798 * @param   idWho       Id of the type specified by iWhich. 0 means the current process/pgrp/user.
     799 * @param   piPrio      Where to store the priority.
     800 */
     801int __libc_Back_processGetPriority(int iWhich, id_t idWho, int *piPrio);
     802
     803/**
     804 * Sets the priority of a process, a group of processes
     805 * or all processed owned by a user.
     806 *
     807 * @returns 0 on success.
     808 * @returns Negative error code (errno.h) on failure.
     809 * @param   iWhich      PRIO_PROCESS, PRIO_PGRP, or PRIO_USER.
     810 * @param   idWho       Id of the type specified by iWhich. 0 means the current process/pgrp/user.
     811 * @param   iPrio       The new priority.
     812 */
     813int __libc_Back_processSetPriority(int iWhich, id_t idWho, int iPrio);
     814
    791815
    792816/** @} */
Note: See TracChangeset for help on using the changeset viewer.