Home | History | Annotate | Download | only in crypto

Lines Matching defs:thread

54 static int wait_for_thread(thread_t thread) {
55 return WaitForSingleObject(thread, INFINITE) == 0;
77 static int wait_for_thread(thread_t thread) {
78 return pthread_join(thread, NULL) == 0;
159 << "Thread-local data was non-NULL at start.";
161 thread_t thread;
162 ASSERT_TRUE(run_thread(&thread, []() {
174 ASSERT_TRUE(wait_for_thread(thread));
176 EXPECT_TRUE(g_test_thread_ok) << "Thread-local data didn't work in thread.";
179 // Create a no-op thread to test test that the thread destructor function
180 // works even if thread-local storage wasn't used for a thread.
181 ASSERT_TRUE(run_thread(&thread, []() {}));
182 ASSERT_TRUE(wait_for_thread(thread));
186 // In FIPS mode, rand.c maintains a linked-list of thread-local data because
192 thread_t thread;
193 ASSERT_TRUE(run_thread(&thread, []() {
197 ASSERT_TRUE(wait_for_thread(thread));