Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3154570
pthread_dbg.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
924 B
Referenced Files
None
Subscribers
None
pthread_dbg.h
View Options
#ifndef _PTHREAD_DBG_H
#define _PTHREAD_DBG_H
#include <pthread.h>
#define pthread_mutex_lock(x) \
{\
printf("pthread_mutex_lock(%s) @ %s:%d in %s\n",\
#x, __FILE__, __LINE__, __FUNCTION__); \
pthread_mutex_lock(x);\
}
#define pthread_mutex_unlock(x) \
{\
printf("pthread_mutex_unlock(%s) @ %s:%d in %s\n",\
#x, __FILE__, __LINE__, __FUNCTION__); \
pthread_mutex_unlock(x);\
}
#define pthread_rwlock_rdlock(x) \
{\
printf("pthread_rwlock_rdlock(%s) @ %s:%d in %s\n",\
#x, __FILE__, __LINE__, __FUNCTION__); \
pthread_rwlock_rdlock(x);\
}
#define pthread_rwlock_unlock(x) \
{\
printf("pthread_rwlock_unlock(%s) @ %s:%d in %s\n",\
#x, __FILE__, __LINE__, __FUNCTION__); \
pthread_rwlock_unlock(x);\
}
#define pthread_rwlock_wrlock(x) \
{\
printf("pthread_rwlock_wrlock(%s) @ %s:%d in %s\n",\
#x, __FILE__, __LINE__, __FUNCTION__); \
pthread_rwlock_wrlock(x);\
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Feb 26, 2:32 PM (8 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1462047
Default Alt Text
pthread_dbg.h (924 B)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment