/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-2012 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "terror.h"
#include <pthread.h>
#ifndef elementsof
#define elementsof(x) (sizeof(x)/sizeof(x[0]))
#endif
#ifndef integralof
#define integralof(x) (((char*)(x))-((char*)0))
#endif
typedef struct _obj_s
int value;
} Obj_t;
static unsigned int Asolock;
static unsigned int N_free;
{
while (1)
N_free += 1;
}
if(!obj)
return NULL;
}
}
tmain()
{
int i, m, type;
char *lockid;
topts();
meth = 0;
{
continue;
{
continue;
}
Asolock = 0;
/* create object list */
for (i = 0; i < N_OBJS; i++)
terror("malloc failed");
}
/* time before starting the threads... */
N_free = 0;
for(i = 0; i < N_THREADS; ++i)
for(i = 0; i < N_THREADS; ++i)
/* time after threads finished... */
{
}
}
texit(0);
}