mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
Add comments and fix os_microdelay
call
This commit is contained in:
@@ -4,9 +4,21 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
/// Initializes the time module
|
||||||
void time_init(void);
|
void time_init(void);
|
||||||
|
|
||||||
|
/// Sleeps for a certain amount of milliseconds
|
||||||
|
///
|
||||||
|
/// @param milliseconds Number of milliseconds to sleep
|
||||||
|
/// @param ignoreinput If true, allow a SIGINT to interrupt us
|
||||||
void os_delay(uint64_t milliseconds, bool ignoreinput);
|
void os_delay(uint64_t milliseconds, bool ignoreinput);
|
||||||
|
|
||||||
|
/// Sleeps for a certain amount of microseconds
|
||||||
|
///
|
||||||
|
/// @param microseconds Number of microseconds to sleep
|
||||||
|
/// @param ignoreinput If true, allow a SIGINT to interrupt us
|
||||||
void os_microdelay(uint64_t microseconds, bool ignoreinput);
|
void os_microdelay(uint64_t microseconds, bool ignoreinput);
|
||||||
|
|
||||||
|
|
||||||
#endif // NEOVIM_OS_TIME_H
|
#endif // NEOVIM_OS_TIME_H
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@ void mch_write(char_u *s, int len)
|
|||||||
{
|
{
|
||||||
ignored = (int)write(1, (char *)s, len);
|
ignored = (int)write(1, (char *)s, len);
|
||||||
if (p_wd) /* Unix is too fast, slow down a bit more */
|
if (p_wd) /* Unix is too fast, slow down a bit more */
|
||||||
os_microdelay(p_wd, 0);
|
os_microdelay(p_wd, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user