This source file includes following definitions.
- Get
#include "content/public/utility/utility_thread.h"
#include "base/lazy_instance.h"
#include "base/threading/thread_local.h"
namespace content {
static base::LazyInstance<base::ThreadLocalPointer<UtilityThread> >::Leaky
lazy_tls = LAZY_INSTANCE_INITIALIZER;
UtilityThread* UtilityThread::Get() {
return lazy_tls.Pointer()->Get();
}
UtilityThread::UtilityThread() {
lazy_tls.Pointer()->Set(this);
}
UtilityThread::~UtilityThread() {
lazy_tls.Pointer()->Set(NULL);
}
}