comparison src/c/driver.c @ 562:6daa59a55c43

Add initial C support for reactive
author Adam Chlipala <adamc@hcoop.net>
date Fri, 19 Dec 2008 09:35:44 -0500
parents b3b06fef7bb5
children 162d5308e34f
comparison
equal deleted inserted replaced
561:79aea80904e8 562:6daa59a55c43
71 return r; 71 return r;
72 } 72 }
73 73
74 static void *worker(void *data) { 74 static void *worker(void *data) {
75 int me = *(int *)data, retries_left = MAX_RETRIES; 75 int me = *(int *)data, retries_left = MAX_RETRIES;
76 uw_context ctx = uw_init(0, 1024, 0); 76 uw_context ctx = uw_init(0, 0, 1024, 0);
77 77
78 while (1) { 78 while (1) {
79 failure_kind fk = uw_begin_init(ctx); 79 failure_kind fk = uw_begin_init(ctx);
80 80
81 if (fk == SUCCESS) { 81 if (fk == SUCCESS) {