[Swift-commit] cog r3858
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Fri Jan 17 16:40:03 CST 2014
------------------------------------------------------------------------
r3858 | jmwozniak | 2014-01-17 16:40:01 -0600 (Fri, 17 Jan 2014) | 2 lines
Clean up
------------------------------------------------------------------------
Index: modules/provider-coaster-c-client/src/Lock.cpp
===================================================================
--- modules/provider-coaster-c-client/src/Lock.cpp (revision 3857)
+++ modules/provider-coaster-c-client/src/Lock.cpp (working copy)
@@ -14,7 +14,7 @@
#define DEBUG_LOCKS 1
#if DEBUG_LOCKS == 1
#define debug(format, args...) \
- { printf("LOCK: " format "\n", id, ## args); \
+ { printf("LOCK: %i " format "\n", id, ## args); \
fflush(stdout); \
}
#else
@@ -23,21 +23,21 @@
Lock::Lock() {
id= unique++;
- debug("LOCK: %i NEW");
+ debug("NEW");
pthread_mutex_init(&l, NULL);
}
Lock::~Lock() {
- debug("LOCK: %i DELETED");
+ debug("DELETED");
}
void Lock::lock() {
- debug("LOCK: %i ACQUIRE");
+ debug("ACQUIRE");
pthread_mutex_lock(&l);
}
void Lock::unlock() {
- debug("LOCK: %i RELEASE");
+ debug("RELEASE");
pthread_mutex_unlock(&l);
}
More information about the Swift-commit
mailing list