home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Cc: <W.BRISCOE@ponl.com>
- Subject: Patch 5.6.020 (extra)
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- ------------
-
- Patch 5.6.020 (extra)
- Problem: The DJGPP version eats processor time (Walter Briscoe).
- Solution: Call __dpmi_yield() in the busy-wait loop.
- Files: src/os_msdos.c
-
-
- *** ../vim-5.6.19/src/os_msdos.c Thu Dec 16 16:00:29 1999
- --- src/os_msdos.c Sat Mar 25 15:00:36 2000
- ***************
- *** 607,615 ****
- --- 608,622 ----
- * We busy-wait here. Unfortunately, delay() and usleep() have been
- * reported to give problems with the original Windows 95. This is
- * fixed in service pack 1, but not everybody installed that.
- + * The DJGPP implementation of usleep() uses a busy-wait loop too.
- */
- if (msec != FOREVER && biostime(0, 0L) > starttime + msec / BIOSTICK)
- break;
- +
- + #ifdef DJGPP
- + /* Yield the CPU to the next process. */
- + __dpmi_yield();
- + #endif
- }
- return FALSE;
- }
- *** ../vim-5.6.19/src/version.c Sat Mar 25 14:39:16 2000
- --- src/version.c Sat Mar 25 15:40:11 2000
- ***************
- *** 420,421 ****
- --- 420,423 ----
- { /* Add new patch number below this line */
- + /**/
- + 20,
- /**/
-
- --
- GALAHAD: No look, really, this isn't nescess ...
- PIGLET: We must examine you.
- GALAHAD: There's nothing wrong with ... that.
- "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
-
- /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
- \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
-