mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
RDMF: more names updated.
This commit is contained in:
10
src/syncio.c
10
src/syncio.c
@ -40,7 +40,7 @@
|
||||
*
|
||||
* All the functions take the timeout in milliseconds. */
|
||||
|
||||
#define REDIS_SYNCIO_RESOLUTION 10 /* Resolution in milliseconds */
|
||||
#define SYNCIO__RESOLUTION 10 /* Resolution in milliseconds */
|
||||
|
||||
/* Write the specified payload to 'fd'. If writing the whole payload will be
|
||||
* done within 'timeout' milliseconds the operation succeeds and 'size' is
|
||||
@ -52,8 +52,8 @@ ssize_t syncWrite(int fd, char *ptr, ssize_t size, long long timeout) {
|
||||
long long remaining = timeout;
|
||||
|
||||
while(1) {
|
||||
long long wait = (remaining > REDIS_SYNCIO_RESOLUTION) ?
|
||||
remaining : REDIS_SYNCIO_RESOLUTION;
|
||||
long long wait = (remaining > SYNCIO__RESOLUTION) ?
|
||||
remaining : SYNCIO__RESOLUTION;
|
||||
long long elapsed;
|
||||
|
||||
/* Optimistically try to write before checking if the file descriptor
|
||||
@ -89,8 +89,8 @@ ssize_t syncRead(int fd, char *ptr, ssize_t size, long long timeout) {
|
||||
|
||||
if (size == 0) return 0;
|
||||
while(1) {
|
||||
long long wait = (remaining > REDIS_SYNCIO_RESOLUTION) ?
|
||||
remaining : REDIS_SYNCIO_RESOLUTION;
|
||||
long long wait = (remaining > SYNCIO__RESOLUTION) ?
|
||||
remaining : SYNCIO__RESOLUTION;
|
||||
long long elapsed;
|
||||
|
||||
/* Optimistically try to read before checking if the file descriptor
|
||||
|
Reference in New Issue
Block a user