This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MPE Port


Sat Sep  4 18:00:00 PDT 1999 Mark Klein (mklein@dis.com)

        * libobjc/thr-dce.c (__objc_thread_set_priority): PRI_FG_MIN_NP is not
	  available in all DCE ports. If not defined, return 0.
	  (__objc_thread_get_priority): If PRI_FG_MIN_NP not defined, default
	  to OBJC_THREAD_INTERACTIVE_PRIORITY.

*** egcs/libobjc/thr-dce.c	Mon Aug 30 21:50:50 1999
--- egcs-ss/libobjc/thr-dce.c	Mon Aug 30 21:53:02 1999
***************
*** 79,84 ****
--- 79,85 ----
  {
    int sys_priority = 0;
  
+ #ifdef PRI_FG_MIN_NP
    switch (priority)
      {
      case OBJC_THREAD_INTERACTIVE_PRIORITY:
***************
*** 99,104 ****
--- 100,108 ----
    else
      /* Failed */
      return -1;
+ #else
+     return 0;
+ #endif
  }
  
  /* Return the current thread's priority. */
***************
*** 107,112 ****
--- 111,117 ----
  {
    int sys_priority;
      
+ #ifdef PRI_FG_MIN_NP
    if ((sys_priority = pthread_getprio(pthread_self())) >= 0) {
      if (sys_priority >= PRI_FG_MIN_NP && sys_priority <= PRI_FG_MAX_NP)
        return OBJC_THREAD_INTERACTIVE_PRIORITY;
***************
*** 117,122 ****
--- 122,130 ----
  
    /* Failed */
    return -1;
+ #else
+   return OBJC_THREAD_INTERACTIVE_PRIORITY;
+ #endif
  }
  
  /* Yield our process time to another thread. */

--
Mark Klein                                 DIS International, Ltd.
http://www.dis.com                         415-892-8400
PGP Public Key Available			


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]