Changeset b929e35
- Timestamp:
- Mar 25, 2011, 3:55:41 AM (13 years ago)
- Children:
- b9c7424
- Parents:
- bb54113
- git-author:
- David Benjamin <davidben@mit.edu> (02/28/11 10:18:49)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/25/11 03:55:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
select.c
rbb54113 rb929e35 6 6 static GSource *owl_timer_source; 7 7 static GSource *owl_io_dispatch_source; 8 9 static int _owl_select_timer_cmp(const owl_timer *t1, const owl_timer *t2); 10 static void owl_select_io_dispatch_gc(void); 8 11 9 12 static gboolean owl_timer_prepare(GSource *source, int *timeout) { … … 90 93 }; 91 94 92 int _owl_select_timer_cmp(const owl_timer *t1, const owl_timer *t2) {95 static int _owl_select_timer_cmp(const owl_timer *t1, const owl_timer *t2) { 93 96 return t1->time - t2->time; 94 }95 96 int _owl_select_timer_eq(const owl_timer *t1, const owl_timer *t2) {97 return t1 == t2;98 97 } 99 98 … … 225 224 } 226 225 227 void owl_select_io_dispatch_gc(void)226 static void owl_select_io_dispatch_gc(void) 228 227 { 229 228 int i; … … 300 299 } 301 300 302 int owl_select_aim_hack(fd_set *rfds, fd_set *wfds)303 {304 aim_conn_t *cur;305 aim_session_t *sess;306 int max_fd;307 308 max_fd = 0;309 sess = owl_global_get_aimsess(&g);310 for (cur = sess->connlist; cur; cur = cur->next) {311 if (cur->fd != -1) {312 FD_SET(cur->fd, rfds);313 if (cur->status & AIM_CONN_STATUS_INPROGRESS) {314 /* Yes, we're checking writable sockets here. Without it, AIM315 login is really slow. */316 FD_SET(cur->fd, wfds);317 }318 319 if (cur->fd > max_fd)320 max_fd = cur->fd;321 }322 }323 return max_fd;324 }325 326 301 void owl_process_input_char(owl_input j) 327 302 {
Note: See TracChangeset
for help on using the changeset viewer.