changed un-inlined code to avoid bogus VC++ level 4 warnings.

added support for more win32 thread priorities.
This commit is contained in:
crs
2002-05-22 16:55:05 +00:00
parent cda243ac76
commit 024f76c909
3 changed files with 30 additions and 3 deletions

View File

@@ -117,3 +117,18 @@ bool CThread::operator!=(const CThread& thread) const
{
return (m_rep != thread.m_rep);
}
//
// CThreadMaskCancel
//
CThreadMaskCancel::CThreadMaskCancel() : m_old(CThread::enableCancel(false))
{
// do nothing
}
CThreadMaskCancel::~CThreadMaskCancel()
{
CThread::enableCancel(m_old);
}