Lines Matching refs:items
47 zx_wait_item_t items[2];
48 items[0].handle = channel[0];
49 items[1].handle = channel[1];
50 items[0].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
51 items[1].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
53 status = zx_object_wait_many(items, 2, ZX_TIME_INFINITE);
57 if (items[0].pending & ZX_CHANNEL_READABLE) {
62 } else if (items[1].pending & ZX_CHANNEL_READABLE) {
68 if (items[0].pending & ZX_CHANNEL_PEER_CLOSED)
70 if (items[1].pending & ZX_CHANNEL_PEER_CLOSED)