#include <AAssetStreaming.h>
Definition at line 6 of file AAssetStreaming.h.
◆ AAssetStreaming()
AAssetStreaming::AAssetStreaming |
( |
| ) |
|
Definition at line 12 of file AAssetStreaming.cpp.
13{
14 m_pCurrentJob =
TNULL;
17 m_FileStream.Create( 0, Toshi::TThread::THREAD_PRIORITY_NORMAL, 0 );
18}
◆ ~AAssetStreaming()
AAssetStreaming::~AAssetStreaming |
( |
| ) |
|
◆ AddMainThreadJob()
◆ CancelAllJobs()
void AAssetStreaming::CancelAllJobs |
( |
| ) |
|
Definition at line 43 of file AAssetStreaming.cpp.
44{
45 for ( auto it = m_Jobs.Begin(); it != m_Jobs.End(); )
46 {
47 auto next = it->Next();
48
49 if ( it->CancelJob() )
50 {
51 it->m_bIsFinished =
TTRUE;
52 it->Remove();
53 }
54
55 it = next;
56 }
57}
◆ GetFileStream()
Toshi::TFileStream & AAssetStreaming::GetFileStream |
( |
| ) |
|
|
inline |
◆ HasActiveJobs()
TBOOL AAssetStreaming::HasActiveJobs |
( |
| ) |
const |
◆ SetFlag()
void AAssetStreaming::SetFlag |
( |
TBOOL | a_bFlag | ) |
|
|
inline |
◆ Update()
void AAssetStreaming::Update |
( |
| ) |
|
Definition at line 25 of file AAssetStreaming.cpp.
26{
27 if ( m_pCurrentJob ==
TNULL )
28 {
29 if ( !m_Jobs.IsEmpty() )
30 {
31 m_pCurrentJob = m_Jobs.PopFront();
32 m_pCurrentJob->BeginJob();
33 }
34 }
35 else if ( m_pCurrentJob->RunJob() )
36 {
37 m_pCurrentJob->m_bIsFinished =
TTRUE;
38 m_pCurrentJob =
TNULL;
39 }
40}
The documentation for this class was generated from the following files: