wait_for_objects: add macros for output-only select types

Bug: 13965
This commit is contained in:
Xiang Fan 2018-01-20 23:38:11 +08:00 committed by Jérôme Duval
parent e74e02ac05
commit 46b328f136
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,12 @@ typedef struct select_sync {
#define SELECT_FLAG(type) (1L << (type - 1))
#define SELECT_OUTPUT_ONLY_FLAGS \
(B_EVENT_ERROR | B_EVENT_DISCONNECTED | B_EVENT_INVALID)
#define SELECT_TYPE_IS_OUTPUT_ONLY(type) \
((SELECT_FLAG(type) & SELECT_OUTPUT_ONLY_FLAGS) != 0)
#ifdef __cplusplus
extern "C" {