comparison src/vim.h @ 10406:42911b233245 v8.0.0097

commit https://github.com/vim/vim/commit/833eb1d752426689051bf2001083359899536939 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 24 17:22:50 2016 +0100 patch 8.0.0097 Problem: When a channel callback consumes a lot of time Vim becomes unresponsive. (skywind) Solution: Bail out of checking channel readahead after 100 msec.
author Christian Brabandt <cb@256bit.org>
date Thu, 24 Nov 2016 17:30:04 +0100
parents 66f1b5bf3fa6
children 401dbd352fd6
comparison
equal deleted inserted replaced
10405:4d35d83f4537 10406:42911b233245
2501 #if (defined(sun) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \ 2501 #if (defined(sun) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \
2502 && defined(S_ISCHR) 2502 && defined(S_ISCHR)
2503 # define OPEN_CHR_FILES 2503 # define OPEN_CHR_FILES
2504 #endif 2504 #endif
2505 2505
2506 #if defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)
2507 # define ELAPSED_TIMEVAL
2508 # define ELAPSED_INIT(v) gettimeofday(&v, NULL)
2509 # define ELAPSED_FUNC(v) elapsed(&v)
2510 # define ELAPSED_TYPE struct timeval
2511 long elapsed(struct timeval *start_tv);
2512 #else
2513 # if defined(WIN32)
2514 # define ELAPSED_TICKCOUNT
2515 # define ELAPSED_INIT(v) v = GetTickCount
2516 # define ELAPSED_FUNC(v) elapsed(v)
2517 # define ELAPSED_TYPE DWORD
2518 long elapsed(DWORD start_tick);
2519 # endif
2520 #endif
2521
2506 #endif /* VIM__H */ 2522 #endif /* VIM__H */