diff options
author | 2008-09-11 13:06:51 -0400 | |
---|---|---|
committer | 2008-09-11 13:06:51 -0400 | |
commit | 05fbd01cabc967d7216d8cbe701ac10ad797b122 (patch) | |
tree | 73966b5bbe40adcbb3abbf589652ef3b8afc0440 /src/c/driver.c | |
parent | fe9025e471578cbdef8ee21e0f9dc51f0f2107ce (diff) |
More opportunities to use regions and lack of string copying
Diffstat (limited to 'src/c/driver.c')
-rw-r--r-- | src/c/driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c/driver.c b/src/c/driver.c index e5e1affd..705bb613 100644 --- a/src/c/driver.c +++ b/src/c/driver.c @@ -52,8 +52,8 @@ static pthread_cond_t queue_cond = PTHREAD_COND_INITIALIZER; #define MAX_RETRIES 5 static void *worker(void *data) { - int me = *(int *)data, retries_left = MAX_RETRIES;; - uw_context ctx = uw_init(1024, 1024); + int me = *(int *)data, retries_left = MAX_RETRIES; + uw_context ctx = uw_init(1024, 0); while (1) { failure_kind fk = uw_begin_init(ctx); @@ -224,6 +224,7 @@ static void *worker(void *data) { uw_send(ctx, sock); printf("Done with client.\n\n"); + uw_memstats(ctx); break; } } |