Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/event_emitter.cc

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/verify_filelist.py ('k') | native_client_sdk/src/libraries/nacl_io/event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698