Moved work for isue 532 into it's own branch.

This commit is contained in:
martin-osborne
2014-10-19 10:59:08 +01:00
parent 558091d53f
commit 2a90e7de92
28 changed files with 383 additions and 2 deletions

View File

@@ -43,7 +43,20 @@ private:
};
typedef MutexImpl FastMutexImpl;
class Foundation_API FastMutexImpl
{
protected:
FastMutexImpl();
~FastMutexImpl();
void lockImpl();
bool tryLockImpl();
bool tryLockImpl(long milliseconds);
void unlockImpl();
private:
CRITICAL_SECTION _cs;
int _lockCount;
};
//
@@ -81,6 +94,13 @@ inline void MutexImpl::unlockImpl()
}
inline void FastMutexImpl::unlockImpl()
{
--_lockCount;
LeaveCriticalSection(&_cs);
}
} // namespace Poco