From: bdemsky Date: Fri, 27 May 2011 21:53:59 +0000 (+0000) Subject: add NOLOCK back in X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca847152ccc92edc9446cdef9165578cd661b67d;p=IRC.git add NOLOCK back in --- diff --git a/Robust/src/Runtime/object.c b/Robust/src/Runtime/object.c index 25fa5869..d9b775b4 100644 --- a/Robust/src/Runtime/object.c +++ b/Robust/src/Runtime/object.c @@ -37,6 +37,7 @@ int CALL01(___Object______getType____, struct ___Object___ * ___this___) { #ifdef THREADS #ifdef D___Object______MonitorEnter____ void CALL01(___Object______MonitorEnter____, struct ___Object___ * ___this___) { +#ifndef NOLOCK #ifdef MAC struct lockvector *lptr=(struct lockvector *)pthread_getspecific(threadlocks); int self=(int)(long)pthread_getspecific(macthreadid); @@ -65,6 +66,7 @@ void CALL01(___Object______MonitorEnter____, struct ___Object___ * ___this___) { } } } +#endif } #endif @@ -117,6 +119,7 @@ void CALL01(___Object______wait____, struct ___Object___ * ___this___) { #ifdef D___Object______MonitorExit____ void CALL01(___Object______MonitorExit____, struct ___Object___ * ___this___) { +#ifndef NOLOCK #ifdef MAC struct lockvector *lptr=(struct lockvector *)pthread_getspecific(threadlocks); #else @@ -128,6 +131,7 @@ void CALL01(___Object______MonitorExit____, struct ___Object___ * ___this___) { MBARRIER(); lpair->object->tid=0; } +#endif } #endif #endif