Flutter Engine
The Flutter Engine
Macros
eintr_wrapper.h File Reference
#include <errno.h>
#include "flutter/fml/build_config.h"

Go to the source code of this file.

Macros

#define FML_HANDLE_EINTR(x)
 
#define FML_IGNORE_EINTR(x)
 

Macro Definition Documentation

◆ FML_HANDLE_EINTR

#define FML_HANDLE_EINTR (   x)
Value:
({ \
decltype(x) eintr_wrapper_result; \
do { \
eintr_wrapper_result = (x); \
} while (eintr_wrapper_result == -1 && errno == EINTR); \
eintr_wrapper_result; \
})
double x

Definition at line 20 of file eintr_wrapper.h.

◆ FML_IGNORE_EINTR

#define FML_IGNORE_EINTR (   x)
Value:
({ \
decltype(x) eintr_wrapper_result; \
do { \
eintr_wrapper_result = (x); \
if (eintr_wrapper_result == -1 && errno == EINTR) { \
eintr_wrapper_result = 0; \
} \
} while (0); \
eintr_wrapper_result; \
})

Definition at line 29 of file eintr_wrapper.h.