first commit

This commit is contained in:
2014-08-20 16:15:02 +08:00
commit f61e330e38
1633 changed files with 119931 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/********************************************************************
created: 2014/04/01
filename: CriSection.h
author: 王少培
purpose:
*********************************************************************/
#include "CriSection.h"
CriSectionLock::CriSectionLock()
{
pthread_mutex_init(&mMutex,NULL);
}
CriSectionLock::~CriSectionLock()
{
pthread_mutex_destroy(&mMutex);
}
void CriSectionLock::enter()
{
pthread_mutex_lock(&mMutex);
}
void CriSectionLock::leave()
{
pthread_mutex_unlock(&mMutex);
}