static void *thread_create(unsigned int *result)
{
- while (! cancel) {
+ while (!cancel) {
DataObject *obj = malloc(sizeof *obj);
obj->id = rand_id();
{
DataObject *objs[NUM_OBJS] = {NULL};
- while (! cancel) {
+ while (!cancel) {
int i = rand() % NUM_OBJS;
if (objs[i]) {
objs[i] = NULL;
}
- while (! objs[i] && ! cancel) {
+ while (!objs[i] && !cancel) {
int id = rand_id();
objs[i] = map_get(&map, &id, &data_object_compare_id, &refcount_grb);
}
static void *thread_delete(unsigned int *result)
{
- while (! cancel) {
+ while (!cancel) {
unsigned int id = rand_id();
if (map_del(&map, &id, &data_object_compare_id, &refcount_drp))