Lines Matching refs:thread_local
778 ThreadLocal<String> thread_local; in TEST()
780 EXPECT_EQ(thread_local.pointer(), &(thread_local.get())); in TEST()
783 thread_local.set("foo"); in TEST()
784 EXPECT_EQ(thread_local.pointer(), &(thread_local.get())); in TEST()
788 ThreadLocal<String> thread_local; in TEST()
789 const ThreadLocal<String>& const_thread_local = thread_local; in TEST()
791 EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer()); in TEST()
793 thread_local.set("foo"); in TEST()
794 EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer()); in TEST()
903 ThreadLocal<String> thread_local("foo"); in TEST()
904 EXPECT_STREQ("foo", thread_local.get().c_str()); in TEST()
906 thread_local.set("bar"); in TEST()
907 EXPECT_STREQ("bar", thread_local.get().c_str()); in TEST()
910 RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result)); in TEST()
939 void CallThreadLocalGet(ThreadParam thread_local) { in CallThreadLocalGet() argument
940 thread_local->get(); in CallThreadLocalGet()
951 ThreadLocal<DestructorTracker> thread_local; in TEST()
956 thread_local.get(); in TEST()
980 ThreadLocal<DestructorTracker> thread_local; in TEST()
986 &CallThreadLocalGet, &thread_local, NULL); in TEST()
1006 ThreadLocal<String> thread_local; in TEST()
1007 thread_local.set("Foo"); in TEST()
1008 EXPECT_STREQ("Foo", thread_local.get().c_str()); in TEST()
1011 RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result)); in TEST()