[loading window] Might as well expose thread specific versions too.

This commit is contained in:
Henrik Andersson
2011-06-05 15:40:41 +02:00
parent 881a6534e8
commit 6d0f3f9db4
2 changed files with 14 additions and 0 deletions
+11
View File
@@ -322,6 +322,17 @@ int RageThread::Wait()
return ret; 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 ) void RageThread::HaltAllThreads( bool Kill )
{ {
+3
View File
@@ -15,6 +15,9 @@ public:
RString GetName() const { return m_sName; } RString GetName() const { return m_sName; }
void Create( int (*fn)(void *), void *data ); void Create( int (*fn)(void *), void *data );
void Halt( bool Kill=false);
void Resume();
/* For crash handlers: kill or suspend all threads (except for /* For crash handlers: kill or suspend all threads (except for
* the running one) immediately. */ * the running one) immediately. */
static void HaltAllThreads( bool Kill=false ); static void HaltAllThreads( bool Kill=false );