comparison src/c/http.c @ 1446:36f7d1debb37

Each context gets its own non-repeating sequence of source numbers
author Adam Chlipala <adam@chlipala.net>
date Sat, 09 Apr 2011 14:36:47 -0400
parents 6365d10cd326
children 17393c5e2b90
comparison
equal deleted inserted replaced
1445:6e6f1643c4e9 1446:36f7d1debb37
61 vprintf(fmt, ap); 61 vprintf(fmt, ap);
62 } 62 }
63 63
64 static void *worker(void *data) { 64 static void *worker(void *data) {
65 int me = *(int *)data; 65 int me = *(int *)data;
66 uw_context ctx = uw_request_new_context(&uw_application, NULL, log_error, log_debug); 66 uw_context ctx = uw_request_new_context(me, &uw_application, NULL, log_error, log_debug);
67 size_t buf_size = 2; 67 size_t buf_size = 2;
68 char *buf = malloc(buf_size); 68 char *buf = malloc(buf_size);
69 uw_request_context rc = uw_new_request_context(); 69 uw_request_context rc = uw_new_request_context();
70 70
71 while (1) { 71 while (1) {