mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +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) {
|
bool ThreadData::StartTracking(bool status) {
|
||||||
#ifndef TRACK_ALL_TASK_OBJECTS
|
#ifndef TRACK_ALL_TASK_OBJECTS
|
||||||
return false; // Not compiled in.
|
return false; // Not compiled in.
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
if (!status) {
|
if (!status) {
|
||||||
AutoLock lock(list_lock_);
|
AutoLock lock(list_lock_);
|
||||||
DCHECK(status_ == ACTIVE || status_ == SHUTDOWN);
|
DCHECK(status_ == ACTIVE || status_ == SHUTDOWN);
|
||||||
@ -325,6 +324,7 @@ bool ThreadData::StartTracking(bool status) {
|
|||||||
CHECK(tls_index_.Initialize(NULL));
|
CHECK(tls_index_.Initialize(NULL));
|
||||||
status_ = ACTIVE;
|
status_ = ACTIVE;
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
Loading…
Reference in New Issue
Block a user