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

Side by Side Diff: third_party/libevent/event.c

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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 | « third_party/icu/icu.gyp ('k') | webkit/api/src/ChromiumBridge.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> 2 * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #ifdef WIN32 101 #ifdef WIN32
102 &win32ops, 102 &win32ops,
103 #endif 103 #endif
104 NULL 104 NULL
105 }; 105 };
106 106
107 /* Global state */ 107 /* Global state */
108 struct event_base *current_base = NULL; 108 struct event_base *current_base = NULL;
109 extern struct event_base *evsignal_base; 109 extern struct event_base *evsignal_base;
110 static int use_monotonic; 110 static int use_monotonic;
111 #if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
111 static int use_monotonic_initialized; 112 static int use_monotonic_initialized;
113 #endif
112 114
113 /* Prototypes */ 115 /* Prototypes */
114 static void event_queue_insert(struct event_base *, struct event *, int); 116 static void event_queue_insert(struct event_base *, struct event *, int);
115 static void event_queue_remove(struct event_base *, struct event *, int); 117 static void event_queue_remove(struct event_base *, struct event *, int);
116 static int event_haveevents(struct event_base *); 118 static int event_haveevents(struct event_base *);
117 119
118 static void event_process_active(struct event_base *); 120 static void event_process_active(struct event_base *);
119 121
120 static int timeout_next(struct event_base *, struct timeval **); 122 static int timeout_next(struct event_base *, struct timeval **);
121 static void timeout_process(struct event_base *); 123 static void timeout_process(struct event_base *);
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 /* 991 /*
990 * No thread-safe interface needed - the information should be the same 992 * No thread-safe interface needed - the information should be the same
991 * for all threads. 993 * for all threads.
992 */ 994 */
993 995
994 const char * 996 const char *
995 event_get_method(void) 997 event_get_method(void)
996 { 998 {
997 return (current_base->evsel->name); 999 return (current_base->evsel->name);
998 } 1000 }
OLDNEW
« no previous file with comments | « third_party/icu/icu.gyp ('k') | webkit/api/src/ChromiumBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698