void Mutex_Init(struct Mutex* mutex);
void Mutex_Lock(struct Mutex* mutex);
void Mutex_Unlock(struct Mutex* mutex);
+void Mutex_Destroy(struct Mutex *mutex); //added by Lei, do some cleaning work?
void Cond_Init(struct Condition* cond);
void Cond_Wait(struct Condition* cond, struct Mutex* mutex);
void Cond_Signal(struct Condition* cond);
void Cond_Broadcast(struct Condition* cond);
+void Cond_Destroy(struct Condition *cond); //added by Lei
#define IS_HELD(mutex) \
((mutex)->state == MUTEX_LOCKED && (mutex)->owner == g_currentThread)
}
-/* int fflush(FILE *stream)
+int printf(char *fmt, ...)
{
- PrintDebug("In fflush!!\n");
+ // PrintDebug("In fprintf!!\n");
+
+ return 0;
+
+}
+
+int fflush(FILE *stream)
+{
+ //PrintDebug("In fflush!!\n");
return 0;
}*/