home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.020 < prev    next >
Encoding:
Internet Message Format  |  2000-03-24  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Cc: <W.BRISCOE@ponl.com>
  3. Subject: Patch 5.6.020 (extra)
  4. Fcc: outbox
  5. From: Bram Moolenaar <Bram@moolenaar.net>
  6. ------------
  7.  
  8. Patch 5.6.020 (extra)
  9. Problem:    The DJGPP version eats processor time (Walter Briscoe).
  10. Solution:   Call __dpmi_yield() in the busy-wait loop.
  11. Files:        src/os_msdos.c
  12.  
  13.  
  14. *** ../vim-5.6.19/src/os_msdos.c    Thu Dec 16 16:00:29 1999
  15. --- src/os_msdos.c    Sat Mar 25 15:00:36 2000
  16. ***************
  17. *** 607,615 ****
  18. --- 608,622 ----
  19.        * We busy-wait here.  Unfortunately, delay() and usleep() have been
  20.        * reported to give problems with the original Windows 95.  This is
  21.        * fixed in service pack 1, but not everybody installed that.
  22. +      * The DJGPP implementation of usleep() uses a busy-wait loop too.
  23.        */
  24.       if (msec != FOREVER && biostime(0, 0L) > starttime + msec / BIOSTICK)
  25.           break;
  26. + #ifdef DJGPP
  27. +     /* Yield the CPU to the next process. */
  28. +     __dpmi_yield();
  29. + #endif
  30.       }
  31.       return FALSE;
  32.   }
  33. *** ../vim-5.6.19/src/version.c    Sat Mar 25 14:39:16 2000
  34. --- src/version.c    Sat Mar 25 15:40:11 2000
  35. ***************
  36. *** 420,421 ****
  37. --- 420,423 ----
  38.   {   /* Add new patch number below this line */
  39. + /**/
  40. +     20,
  41.   /**/
  42.  
  43. -- 
  44. GALAHAD: No look, really, this isn't nescess ...
  45. PIGLET:  We must examine you.
  46. GALAHAD: There's nothing wrong with ... that.
  47.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  48.  
  49. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  50. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  51.