[loading window] Might as well expose thread specific versions too.
This commit is contained in:
@@ -322,6 +322,17 @@ int RageThread::Wait()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void RageThread::Halt(bool Kill) {
|
||||
ASSERT( m_pSlot != NULL );
|
||||
ASSERT( m_pSlot->m_pImpl != NULL );
|
||||
m_pSlot->m_pImpl->Halt(Kill);
|
||||
}
|
||||
|
||||
void RageThread::Resume() {
|
||||
ASSERT( m_pSlot != NULL );
|
||||
ASSERT( m_pSlot->m_pImpl != NULL );
|
||||
m_pSlot->m_pImpl->Resume();
|
||||
}
|
||||
|
||||
void RageThread::HaltAllThreads( bool Kill )
|
||||
{
|
||||
|
||||
@@ -15,6 +15,9 @@ public:
|
||||
RString GetName() const { return m_sName; }
|
||||
void Create( int (*fn)(void *), void *data );
|
||||
|
||||
void Halt( bool Kill=false);
|
||||
void Resume();
|
||||
|
||||
/* For crash handlers: kill or suspend all threads (except for
|
||||
* the running one) immediately. */
|
||||
static void HaltAllThreads( bool Kill=false );
|
||||
|
||||
Reference in New Issue
Block a user