- Timestamp:
- Apr 25, 2005, 6:50:41 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/b_processGetPriority.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1911 r1912 35 35 #include <InnoTekLIBC/backend.h> 36 36 #include <InnoTekLIBC/sharedpm.h> 37 #include <InnoTekLIBC/FastInfoBlocks.h> 37 38 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_PROCESS 38 39 #include <InnoTekLIBC/logstrict.h> … … 146 147 int *piNice = (int *)pvUser; 147 148 int iNice = pProcess->iNice; 149 int iNiceCur; 150 151 /* Update current process if default nice. */ 152 if ( pProcess->pid == fibGetPid() 153 && ( iNice > (iNiceCur = __libc_back_priorityUnixFromOS2(__libc_GpFIBLIS->prtyCurrent)) /* highest priority thread */ 154 || (iNice != iNiceCur && iNice == 0 && fibGetTid() == 1) /* or if possibly uninitialized (only thread 1) */ 155 ) 156 ) 157 pProcess->iNice = iNice = iNiceCur; 158 159 /* min */ 148 160 if (iNice < *piNice) 149 161 *piNice = iNice; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.