Home | History | Annotate | Download | only in test

Lines Matching refs:thread_local

778   ThreadLocal<String> thread_local;
780 EXPECT_EQ(thread_local.pointer(), &(thread_local.get()));
783 thread_local.set("foo");
784 EXPECT_EQ(thread_local.pointer(), &(thread_local.get()));
788 ThreadLocal<String> thread_local;
789 const ThreadLocal<String>& const_thread_local = thread_local;
791 EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer());
793 thread_local.set("foo");
794 EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer());
903 ThreadLocal<String> thread_local("foo");
904 EXPECT_STREQ("foo", thread_local.get().c_str());
906 thread_local.set("bar");
907 EXPECT_STREQ("bar", thread_local.get().c_str());
910 RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result));
939 void CallThreadLocalGet(ThreadParam thread_local) {
940 thread_local->get();
950 // the default value of objects managed by thread_local.
951 ThreadLocal<DestructorTracker> thread_local;
956 thread_local.get();
962 // Now thread_local has died. It should have destroyed both the
979 // the default value of objects managed by thread_local.
980 ThreadLocal<DestructorTracker> thread_local;
986 &CallThreadLocalGet, &thread_local, NULL);
996 // Now thread_local has died. The default value should have been
1006 ThreadLocal<String> thread_local;
1007 thread_local.set("Foo");
1008 EXPECT_STREQ("Foo", thread_local.get().c_str());
1011 RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result));