Skip to content
Snippets Groups Projects
Commit 2863cca7 authored by samarth5's avatar samarth5
Browse files

Removing debug code

parent 8848761c
No related branches found
No related tags found
No related merge requests found
...@@ -1610,11 +1610,10 @@ ...@@ -1610,11 +1610,10 @@
// } // }
/**********Lock Related Functions**********/ /**********Lock Related Functions**********/
#if CMK_USE_COMMON_LOCK #if CMK_USE_COMMON_LOCK
#if CMK_SHARED_VARS_UNAVAILABLE /*Non-smp version of locks*/ #if CMK_SHARED_VARS_UNAVAILABLE /*Non-smp version of locks*/
LrtsNodeLock LrtsCreateLock(void){ return 0; } LrtsNodeLock LrtsCreateLock(void){ return 0; }
void LrtsLock(LrtsNodeLock lock){ cout<<(CMK_SHARED_VARS_UNAVAILABLE); (lock)++; cout<<(lock) << endl; } void LrtsLock(LrtsNodeLock lock){ (lock)++; }
void LrtsUnlock(LrtsNodeLock lock){ (lock)--; } void LrtsUnlock(LrtsNodeLock lock){ (lock)--; }
int LrtsTryLock(LrtsNodeLock lock){ return ((lock)?1:((lock)=1,0)); } int LrtsTryLock(LrtsNodeLock lock){ return ((lock)?1:((lock)=1,0)); }
void LrtsDestroyLock(LrtsNodeLock lock){ /* empty */ } void LrtsDestroyLock(LrtsNodeLock lock){ /* empty */ }
...@@ -1642,7 +1641,6 @@ void LrtsDestroyLock(LrtsNodeLock lock){ ...@@ -1642,7 +1641,6 @@ void LrtsDestroyLock(LrtsNodeLock lock){
#else /*other smp versions uses pthread mutex by default*/ #else /*other smp versions uses pthread mutex by default*/
LrtsNodeLock LrtsCreateLock(void){ LrtsNodeLock LrtsCreateLock(void){
// cout <<"MUTEX THREAD CALLED TEST";
LrtsNodeLock l = (LrtsNodeLock)malloc(sizeof(pthread_mutex_t)); LrtsNodeLock l = (LrtsNodeLock)malloc(sizeof(pthread_mutex_t));
pthread_mutex_init(l,(pthread_mutexattr_t *)0); pthread_mutex_init(l,(pthread_mutexattr_t *)0);
return l; return l;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment