if (VAR(___this___)->___nextlockobject___!=NULL)
VAR(___this___)->___nextlockobject___->___prevlockobject___=VAR(___this___);
pthread_setspecific(threadlocks, VAR(___this___));
- VAR(___this___)->lockcount=1;
VAR(___this___)->tid=self;
pthread_mutex_unlock(&objlock);
BARRIER();
VAR(___this___)->___nextlockobject___->___prevlockobject___=VAR(___this___)->___prevlockobject___;
VAR(___this___)->___nextlockobject___=NULL;
VAR(___this___)->___prevlockobject___=NULL;
- VAR(___this___)->lockentry=NULL;
+ //VAR(___this___)->lockentry=NULL;
VAR(___this___)->tid=0;
//release lock
BARRIER();
if (VAR(___this___)->___nextlockobject___!=NULL)
VAR(___this___)->___nextlockobject___->___prevlockobject___=VAR(___this___);
pthread_setspecific(threadlocks, VAR(___this___));
- VAR(___this___)->lockcount=1;
VAR(___this___)->tid=self;
pthread_mutex_unlock(&objlock);
BARRIER();
VAR(___this___)->___nextlockobject___->___prevlockobject___=VAR(___this___)->___prevlockobject___;
VAR(___this___)->___nextlockobject___=NULL;
VAR(___this___)->___prevlockobject___=NULL;
- VAR(___this___)->lockentry=NULL;
+ //VAR(___this___)->lockentry=NULL;
VAR(___this___)->tid=0;
}
atomic_dec(&VAR(___this___)->lockcount);