Ejemplo n.º 1
0
 internal static extern int setpriority(PriorityWhich which, int who, int prio);
Ejemplo n.º 2
0
 internal static extern int SetPriority(PriorityWhich which, int who, int nice);
Ejemplo n.º 3
0
 /// <summary>
 /// Wrapper around getpriority since getpriority can return from -20 to 20; therefore,
 /// we cannot rely on the return value for success and failure. This wrapper makes the
 /// getpriority call to act more naturally where the return value is the actual error
 /// value (or 0 if success) instead of forcing the caller to retrieve the last error.
 /// </summary>
 /// <returns>Returns 0 on success; otherwise, returns the errno value</returns>
 internal static int GetPriority(PriorityWhich which, int who, out int priority)
 {
     priority = GetPriority(which, who);
     return Marshal.GetLastWin32Error();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Wrapper around getpriority since getpriority can return from -20 to 20; therefore,
 /// we cannot rely on the return value for success and failure. This wrapper makes the
 /// getpriority call to act more naturally where the return value is the actual error
 /// value (or 0 if success) instead of forcing the caller to retrieve the last error.
 /// </summary>
 /// <returns>Returns 0 on success; otherwise, returns the errno value</returns>
 internal static int GetPriority(PriorityWhich which, int who, out int priority)
 {
     priority = GetPriority(which, who);
     return(Marshal.GetLastWin32Error());
 }
Ejemplo n.º 5
0
 private static extern int GetPriority(PriorityWhich which, int who);
Ejemplo n.º 6
0
 internal static extern int SetPriority(PriorityWhich which, int who, int nice);
Ejemplo n.º 7
0
 private static extern int GetPriority(PriorityWhich which, int who);
Ejemplo n.º 8
0
 internal static partial int SetPriority(PriorityWhich which, int who, int nice);
Ejemplo n.º 9
0
 private static partial int GetPriority(PriorityWhich which, int who);
Ejemplo n.º 10
0
 internal static extern int setpriority(PriorityWhich which, int who, int prio);