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

Side by Side Diff: base/third_party/libevent/sample/event-test.c

Issue 1531573008: move libevent into base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shim path Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Compile with: 2 * Compile with:
3 * cc -I/usr/local/include -o event-test event-test.c -L/usr/local/lib -levent 3 * cc -I/usr/local/include -o event-test event-test.c -L/usr/local/lib -levent
4 */ 4 */
5 5
6 #ifdef HAVE_CONFIG_H 6 #ifdef HAVE_CONFIG_H
7 #include "config.h" 7 #include "config.h"
8 #endif 8 #endif
9 9
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 /* Add it to the active events, without a timeout */ 130 /* Add it to the active events, without a timeout */
131 event_add(&evfifo, NULL); 131 event_add(&evfifo, NULL);
132 132
133 event_dispatch(); 133 event_dispatch();
134 #ifdef WIN32 134 #ifdef WIN32
135 CloseHandle(socket); 135 CloseHandle(socket);
136 #endif 136 #endif
137 return (0); 137 return (0);
138 } 138 }
139 139
OLDNEW
« no previous file with comments | « base/third_party/libevent/sample/Makefile.am ('k') | base/third_party/libevent/sample/signal-test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698