diff options
author | Paul Ollis <paul@cleversheep.org> | 2022-06-05 16:55:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-05 16:55:54 +0100 |
commit | 6574577cacd393ab7591fc776ea060eebc939e55 (patch) | |
tree | f583ca9957280e7086b8d14ef44127302829fd40 /src/errors.h | |
parent | 1d97db3d987c05af88c30ad20f537bcf3024f9c1 (diff) | |
download | vim-git-6574577cacd393ab7591fc776ea060eebc939e55.tar.gz |
patch 8.2.5057: using gettimeofday() for timeout is very inefficientv8.2.5057
Problem: Using gettimeofday() for timeout is very inefficient.
Solution: Set a platform dependent timer. (Paul Ollis, closes #10505)
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index 8ca2a3e2f..109d9e834 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3288,3 +3288,15 @@ EXTERN char e_bitshift_ops_must_be_postive[] EXTERN char e_argument_1_list_item_nr_dictionary_required[] INIT(= N_("E1284: Argument 1, list item %d: Dictionary required")); #endif +#ifdef FEAT_RELTIME +EXTERN char e_could_not_clear_timeout_str[] + INIT(= N_("E1285: Could not clear timeout: %s")); +EXTERN char e_could_not_set_timeout_str[] + INIT(= N_("E1286: Could not set timeout: %s")); +EXTERN char e_could_not_set_handler_for_timeout_str[] + INIT(= N_("E1287: Could not set handler for timeout: %s")); +EXTERN char e_could_not_reset_handler_for_timeout_str[] + INIT(= N_("E1288: Could not reset handler for timeout: %s")); +EXTERN char e_could_not_check_for_pending_sigalrm_str[] + INIT(= N_("E1289: Could not check for pending SIGALRM: %s")); +#endif |