mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
changed un-inlined code to avoid bogus VC++ level 4 warnings.
added support for more win32 thread priorities.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user