bool js::Thread::Id::operator==(const Id& aOther) const { const PlatformData& self = *platformData(); const PlatformData& other = *aOther.platformData(); return (!self.hasThread && !other.hasThread) || (self.hasThread == other.hasThread && pthread_equal(self.ptThread, other.ptThread)); }
bool js::Thread::Id::operator==(const Id& aOther) const { return platformData()->id == aOther.platformData()->id; }