~ubuntu-branches/ubuntu/hardy/apache2/hardy-proposed

« back to all changes in this revision

Viewing changes to srclib/apr/test/testlockperf.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2008-01-17 20:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080117202756-hv38rjknhwa2ilwi
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define MAX_COUNTER 1000000
39
39
#define MAX_THREADS 6
40
40
 
 
41
static int verbose = 0;
41
42
static long mutex_counter;
42
43
 
43
44
static apr_thread_mutex_t *thread_lock;
244
245
        exit(-1);
245
246
    }
246
247
        
247
 
    while ((rv = apr_getopt(opt, "f:", &optchar, &optarg)) == APR_SUCCESS) {
 
248
    while ((rv = apr_getopt(opt, "vf:", &optchar, &optarg)) == APR_SUCCESS) {
 
249
        if (optchar == 'v') {
 
250
            verbose = 1;
 
251
        }
248
252
        if (optchar == 'f') {
249
253
            lockname = optarg;
250
254
        }