move libthread to libstb-hal

This commit is contained in:
smogm
2015-01-12 18:15:08 +01:00
parent 3ef2eeb8aa
commit 95ee7f9e98
25 changed files with 915 additions and 86 deletions

12
libthread/scoped_lock.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include <scoped_lock.h>
ScopedLock::ScopedLock(Mutex& aMutex) :
mMutex(aMutex)
{
mMutex.lock();
}
ScopedLock::~ScopedLock()
{
mMutex.unlock();
}