#include <errno.h>
#include "flutter/fml/build_config.h"
Go to the source code of this file.
◆ 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; \
})
Definition at line 20 of file eintr_wrapper.h.
21 { \
22 decltype(
x) eintr_wrapper_result; \
23 do { \
24 eintr_wrapper_result = (
x); \
25 } while (eintr_wrapper_result == -1 && errno == EINTR); \
26 eintr_wrapper_result; \
27 })
◆ 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.
30 { \
31 decltype(
x) eintr_wrapper_result; \
32 do { \
33 eintr_wrapper_result = (
x); \
34 if (eintr_wrapper_result == -1 && errno == EINTR) { \
35 eintr_wrapper_result = 0; \
36 } \
37 } while (0); \
38 eintr_wrapper_result; \
39 })