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

Side by Side Diff: base/message_pump_libevent.cc

Issue 11366229: Move eintr_wrapper.h from base to base/posix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « base/message_pump_glib.cc ('k') | base/message_pump_libevent_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/message_pump_libevent.h" 5 #include "base/message_pump_libevent.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
11 #include "base/auto_reset.h" 11 #include "base/auto_reset.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/eintr_wrapper.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #if defined(OS_MACOSX) 14 #if defined(OS_MACOSX)
16 #include "base/mac/scoped_nsautorelease_pool.h" 15 #include "base/mac/scoped_nsautorelease_pool.h"
17 #endif 16 #endif
18 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
19 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/posix/eintr_wrapper.h"
20 #include "base/time.h" 20 #include "base/time.h"
21 #if defined(USE_SYSTEM_LIBEVENT) 21 #if defined(USE_SYSTEM_LIBEVENT)
22 #include <event.h> 22 #include <event.h>
23 #else 23 #else
24 #include "third_party/libevent/event.h" 24 #include "third_party/libevent/event.h"
25 #endif 25 #endif
26 26
27 #if defined(OS_MACOSX) 27 #if defined(OS_MACOSX)
28 #include "base/mac/scoped_nsautorelease_pool.h" 28 #include "base/mac/scoped_nsautorelease_pool.h"
29 #endif 29 #endif
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // Remove and discard the wakeup byte. 374 // Remove and discard the wakeup byte.
375 char buf; 375 char buf;
376 int nread = HANDLE_EINTR(read(socket, &buf, 1)); 376 int nread = HANDLE_EINTR(read(socket, &buf, 1));
377 DCHECK_EQ(nread, 1); 377 DCHECK_EQ(nread, 1);
378 that->processed_io_events_ = true; 378 that->processed_io_events_ = true;
379 // Tell libevent to break out of inner loop. 379 // Tell libevent to break out of inner loop.
380 event_base_loopbreak(that->event_base_); 380 event_base_loopbreak(that->event_base_);
381 } 381 }
382 382
383 } // namespace base 383 } // namespace base
OLDNEW
« no previous file with comments | « base/message_pump_glib.cc ('k') | base/message_pump_libevent_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698