OLD | NEW |
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 // found in the LICENSE file. |
4 */ | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 #include <poll.h> | 6 #include <poll.h> |
7 | 7 |
8 #include "nacl_io/event_emitter.h" | 8 #include "nacl_io/event_emitter.h" |
9 #include "nacl_io/event_listener.h" | 9 #include "nacl_io/event_listener.h" |
10 #include "nacl_io/fifo_interface.h" | 10 #include "nacl_io/fifo_interface.h" |
11 | 11 |
12 #include "sdk_util/auto_lock.h" | 12 #include "sdk_util/auto_lock.h" |
13 | 13 |
14 namespace nacl_io { | 14 namespace nacl_io { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 EventListenerMap_t::iterator it; | 51 EventListenerMap_t::iterator it; |
52 for (it = listeners_.begin(); it != listeners_.end(); it++) { | 52 for (it = listeners_.begin(); it != listeners_.end(); it++) { |
53 uint32_t bits = it->second & event_bits; | 53 uint32_t bits = it->second & event_bits; |
54 if (0 != bits) | 54 if (0 != bits) |
55 it->first->ReceiveEvents(this, bits); | 55 it->first->ReceiveEvents(this, bits); |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 } // namespace nacl_io | 59 } // namespace nacl_io |
OLD | NEW |