Subversion Repositories tpanel

Rev

Rev 93 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 93 Rev 97
Line 25... Line 25...
25
}
25
}
26
 
26
 
27
TImageRefresh::~TImageRefresh()
27
TImageRefresh::~TImageRefresh()
28
{
28
{
29
    DECL_TRACER("TImageRefresh::~TImageRefresh()");
29
    DECL_TRACER("TImageRefresh::~TImageRefresh()");
-
 
30
 
-
 
31
    stopWait();
30
}
32
}
31
 
33
 
32
void TImageRefresh::run(const std::string& url)
34
void TImageRefresh::run(const std::string& url)
33
{
35
{
34
    DECL_TRACER("TImageRefresh::run()");
36
    DECL_TRACER("TImageRefresh::run()");
Line 46... Line 48...
46
    {
48
    {
47
        MSG_ERROR("Error starting the TImageRefresh thread: " << e.what());
49
        MSG_ERROR("Error starting the TImageRefresh thread: " << e.what());
48
    }
50
    }
49
}
51
}
50
 
52
 
-
 
53
void TImageRefresh::stopWait()
-
 
54
{
-
 
55
    DECL_TRACER("TImageRefresh::stopWait()");
-
 
56
 
-
 
57
    mStopped = true;
-
 
58
 
-
 
59
    while(mRunning)
-
 
60
        std::this_thread::sleep_for(std::chrono::milliseconds(500));
-
 
61
}
-
 
62
 
51
void TImageRefresh::_run(const std::string& url)
63
void TImageRefresh::_run(const std::string& url)
52
{
64
{
53
    DECL_TRACER("TImageRefresh::_run(const std::string& url)");
65
    DECL_TRACER("TImageRefresh::_run(const std::string& url)");
54
 
66
 
55
    if (mRunning)
67
    if (mRunning)