mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 555690 ThreadData::StartTracking should use #else. r=cjones
This commit is contained in:
parent
985124d905
commit
b2a92b4b2f
@ -312,8 +312,7 @@ void ThreadData::RunOnAllThreads(void (*function)()) {
|
||||
bool ThreadData::StartTracking(bool status) {
|
||||
#ifndef TRACK_ALL_TASK_OBJECTS
|
||||
return false; // Not compiled in.
|
||||
#endif
|
||||
|
||||
#else
|
||||
if (!status) {
|
||||
AutoLock lock(list_lock_);
|
||||
DCHECK(status_ == ACTIVE || status_ == SHUTDOWN);
|
||||
@ -325,6 +324,7 @@ bool ThreadData::StartTracking(bool status) {
|
||||
CHECK(tls_index_.Initialize(NULL));
|
||||
status_ = ACTIVE;
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
// static
|
||||
|
Loading…
Reference in New Issue
Block a user