threaded pstats fix

This commit is contained in:
David Rose 2007-11-27 01:15:26 +00:00
parent 591a2096b4
commit 0c2b6e3164

View File

@ -156,7 +156,10 @@ get_thread_object(int index) const {
////////////////////////////////////////////////////////////////////
INLINE double PStatClient::
get_real_time() const {
return get_impl()->get_real_time();
if (has_impl()) {
return _impl->get_real_time();
}
return 0.0f;
}
////////////////////////////////////////////////////////////////////